AppWerft / Ti.GoogleSignIn

Use the native Google Sign In SDK in Appcelerator Titanium. 🚀
Other
24 stars 12 forks source link

Exception with Appcelerator SDK 9.0.1GA #36

Open ikruze opened 4 years ago

ikruze commented 4 years ago

When trying to build up a view there is an exception when importing the module in my js code: var Google=require("ti.googlesignin");

Uncaught Error: Failed resolution of: Lcom/google/android/gms/auth/api/Auth;

After I debugged it, I found that the exception is occuring at GooglesigninModule.java on line 111

This start occuring after upgrading to Apcelerator SDK 9.0.1GA, and Firebase Core 6.0.0 from hansemannn (https://github.com/hansemannn/titanium-firebase-core)

ikruze commented 4 years ago

Just found this debug message:

Module ti.googlesignin does not contain x86_64 ABI. Application will build without x86_64 ABI support!

AppWerft commented 4 years ago

you have to recompile the module with SDK >=8

ikruze commented 4 years ago

Thanks... finally it worked, had to recompile and update my NDK version

bali001 commented 4 years ago

I get the same error message. I tried to recompile it, but I got several error messages about missing symbols.

I'm using appc 8.0.0 and Apcelerator SDK 9.0.1GA. NDK version is 21.1.6352462.

@ikruze How did you recompile the module?

ikruze commented 4 years ago

Hi @bali001 it was a bit hard, but it worth the pain :) I had to upgrade the firebase-core module to 6.0.0 (I had 5.0.0 in my project) from here: https://github.com/hansemannn/titanium-firebase-core/releases

After that I was dealing with a specific version of NDK because I also had version 21.1.6352462 and the proyect didn't compile because it was throwing an error that asked for the versión 20.0.5594570 in order to go on. Finally I founded that version here: https://androidsdkoffline.blogspot.com/p/android-ndk-direct-download.html and uncompressed the file inside the android/ndk/ folder but naming it with the version that corresponds, so now I have this in the folder:

Captura de Pantalla 2020-05-04 a la(s) 11 03 36

I downloaded the source code in order to recompile it and had to add the following into the build.grade file to complete the dependencies, if I don't I was having a double version library issue when compilating:

dependencies {
    implementation 'com.google.android.gms:play-services-basement:17.0.0'
    implementation 'com.google.android.gms:play-services-auth:17.0.0'
    implementation 'com.google.android.gms:play-services-auth-base:17.0.0'
    implementation 'com.google.android.gms:play-services-base:17.0.0'
}

That worked fine, I'm leaving here the dist file that you can import into Appcelerator Studio... hope it works for you ti.googlesignin-android-3.0.4.zip

AppWerft commented 4 years ago

You have to compile with SDK8 (64bit), SDK9 will makes new issues because of totally new architecture of dependencies.

bali001 commented 4 years ago

@ikruze I tried my app with your build and it works. Thank you!

ikruze commented 4 years ago

Good news!!

AndreaVitale commented 4 years ago

Created a PR #37

geqmedia commented 4 years ago

Tried your build, now popup for choosing account shows up, but i have no callback at all.

jgiunta commented 4 years ago

Thanks! It's working on SDK 9.1.0 and latest Firebase modules.

adomkawle commented 4 years ago

Hello, no callbacks or events are firing for me. Any suggestions would be helpful. I used module @ikruze shared. Thanks in advance.