Skip to content
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

Exception with Appcelerator SDK 9.0.1GA #36

Open
ikruze opened this issue May 1, 2020 · 12 comments
Open

Exception with Appcelerator SDK 9.0.1GA #36

ikruze opened this issue May 1, 2020 · 12 comments

Comments

@ikruze
Copy link

ikruze commented May 1, 2020

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
Copy link
Author

ikruze commented May 1, 2020

Just found this debug message:

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

@AppWerft
Copy link
Owner

AppWerft commented May 2, 2020

you have to recompile the module with SDK >=8

@ikruze
Copy link
Author

ikruze commented May 2, 2020

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

@bali001
Copy link

bali001 commented May 4, 2020

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
Copy link
Author

ikruze commented May 4, 2020

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
Copy link
Owner

AppWerft commented May 4, 2020

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

@bali001
Copy link

bali001 commented May 6, 2020

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

@ikruze
Copy link
Author

ikruze commented May 6, 2020

Good news!!

@AndreaVitale
Copy link

Created a PR #37

@geqmedia
Copy link

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

@jgiunta
Copy link

jgiunta commented Sep 2, 2020

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

@adomkawle
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants