-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building issue #1
Comments
I think this is the main error: stderr[ ] |
Thanks! Fixed it. |
Oh wow! That was really fast. Thanks! I can now build my project to phone. There is still one problem, on PC it works perfectly, but on phone it doesn't. I try to figure this out by myself, as you already helped me quite alot :) Thanks again. |
Alright, what i figured out is that the signin on android phone stops working after the androidjavaclass is initialized. Maybe the class name is wrong? (com.hiyorin.googlesignin.GoogleSinInPlugin) |
Class name is com.hiyorin.googlesignin.GoogleSignInPlugin. |
In GoogleSignInPluginForAndroid everything seems to be okay. Maybe something is wrong with this GoogleSignInPlugin file? package com.hiyorin.googlesignin; Or this GoogleSignInFile? package com.hiyorin.googlesignin; GoogleSignInOptions.Builder builder = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN); if (requestEmail) builder.requestEmail(); GoogleSignInOptions options = builder.build(); Intent signInIntent = Auth.GoogleSignInApi.getSignInIntent(client); public void onActivityResult(int requestCode, int resultCode, Intent data) if (requestCode == RC_SIGN_IN) @OverRide
@OverRide logDebug("onActivityStarted", ""); if (client != null) client.connect(); } } @OverRide
@OverRide
@OverRide logDebug("onActivityStopped", ""); } }
public void onActivitySaveInstanceState(Activity activity, Bundle outState) {
@OverRide
} |
Thanks! Fixed it. |
You know, I'm really thankful to you, because you find the time to help people like me, who experiences issues. I hate to say this but i really can't seem to get it working on android phone.
text "1" appears right away, but "2" and "3" never does. Thanks for your time and effort for making this plugin :) |
Sorry, Not reproduce. GoogleSignInPluginForAndroid private void Awake()
{
using (AndroidJavaClass plugin = new AndroidJavaClass(ClassName))
{
Debug.Log("Initialize 01");
plugin.CallStatic("initialize");
Debug.Log("Initialize 02");
}
} Text "initialize 01", "initialize 02" appears right away. |
Alright, I'm back again :) So I tried "prebuild with gradle" On GooglePlayServicesResolver and it gave me this error: Error somewhere in the process of creating the gradle build, executing it, and copying the outputs. Error (-1): UnityEngine.Debug:LogError(Object) Maybe there's a problem somewhere in there? Thanks in advance :) |
Hello, this plugin is really simple and awesome, but when i try to build it in unity it gives me this error:
CommandInvokationFailure: Failed to re-package resources.
C:\Users\Vartotojas\AppData\Local\Android\sdk\build-tools\25.0.3\aapt.exe package --auto-add-overlay -v -f -m -J "gen" -M "AndroidManifest.xml" -S "res" -I "C:/Users/Vartotojas/AppData/Local/Android/sdk\platforms\android-25\android.jar" -F bin/resources.ap_ --extra-packages com.hiyorin.googlesignin:com.area730.localnotif:com.google.android.gms.auth.api:com.google.android.gms.auth -S
Does someone know what to do? Thanks in advance!
The text was updated successfully, but these errors were encountered: