-
-
Notifications
You must be signed in to change notification settings - Fork 176
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
Crashes on License Verification on first launch when installed from play store. #50
Comments
Please next time post only the relevant part of the logs. Here it is: 07-22 23:21:09.556 10228 10228 E AndroidRuntime: FATAL EXCEPTION: main
07-22 23:21:09.556 10228 10228 E AndroidRuntime: Process: np.pro.dipendra.triviavision, PID: 10228
07-22 23:21:09.556 10228 10228 E AndroidRuntime: java.lang.IllegalArgumentException: java.security.spec.InvalidKeySpecException: com.android.org.conscrypt.OpenSSLX509CertificateFactory$ParsingException: Error parsing public key
07-22 23:21:09.556 10228 10228 E AndroidRuntime: at com.github.javiersantos.licensing.LibraryChecker.a(SourceFile:129)
07-22 23:21:09.556 10228 10228 E AndroidRuntime: at com.github.javiersantos.licensing.LibraryChecker.<init>(SourceFile:98)
07-22 23:21:09.556 10228 10228 E AndroidRuntime: at com.github.javiersantos.piracychecker.PiracyChecker.b(SourceFile:321)
07-22 23:21:09.556 10228 10228 E AndroidRuntime: at com.github.javiersantos.piracychecker.PiracyChecker.b(SourceFile:298)
07-22 23:21:09.556 10228 10228 E AndroidRuntime: at np.pro.dipendra.hqvision.r.a(SourceFile:145)
07-22 23:21:09.556 10228 10228 E AndroidRuntime: at np.pro.dipendra.hqvision.LauncherActivity.r(SourceFile:92)
07-22 23:21:09.556 10228 10228 E AndroidRuntime: at np.pro.dipendra.hqvision.LauncherActivity.a(SourceFile:148)
07-22 23:21:09.556 10228 10228 E AndroidRuntime: at np.pro.dipendra.hqvision.LauncherActivity.a(SourceFile:24)
07-22 23:21:09.556 10228 10228 E AndroidRuntime: at np.pro.dipendra.hqvision.a.a$1.a(SourceFile:46)
07-22 23:21:09.556 10228 10228 E AndroidRuntime: at com.google.firebase.database.zzp.a(Unknown Source:7)
07-22 23:21:09.556 10228 10228 E AndroidRuntime: at com.google.android.gms.internal.firebase_database.zzfc.a(Unknown Source:13)
07-22 23:21:09.556 10228 10228 E AndroidRuntime: at com.google.android.gms.internal.firebase_database.zzgx.a(Unknown Source:2)
07-22 23:21:09.556 10228 10228 E AndroidRuntime: at com.google.android.gms.internal.firebase_database.zzhd.run(Unknown Source:71)
07-22 23:21:09.556 10228 10228 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:790)
07-22 23:21:09.556 10228 10228 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99)
07-22 23:21:09.556 10228 10228 E AndroidRuntime: at android.os.Looper.loop(Looper.java:164)
07-22 23:21:09.556 10228 10228 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6494)
07-22 23:21:09.556 10228 10228 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
07-22 23:21:09.556 10228 10228 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
07-22 23:21:09.556 10228 10228 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
07-22 23:21:09.556 10228 10228 E AndroidRuntime: Caused by: java.security.spec.InvalidKeySpecException: com.android.org.conscrypt.OpenSSLX509CertificateFactory$ParsingException: Error parsing public key
07-22 23:21:09.556 10228 10228 E AndroidRuntime: at com.android.org.conscrypt.OpenSSLKey.getPublicKey(OpenSSLKey.java:272)
07-22 23:21:09.556 10228 10228 E AndroidRuntime: at com.android.org.conscrypt.OpenSSLRSAKeyFactory.engineGeneratePublic(OpenSSLRSAKeyFactory.java:54)
07-22 23:21:09.556 10228 10228 E AndroidRuntime: at java.security.KeyFactory.generatePublic(KeyFactory.java:357)
07-22 23:21:09.556 10228 10228 E AndroidRuntime: at com.github.javiersantos.licensing.LibraryChecker.a(SourceFile:120)
07-22 23:21:09.556 10228 10228 E AndroidRuntime: ... 19 more
07-22 23:21:09.556 10228 10228 E AndroidRuntime: Caused by: com.android.org.conscrypt.OpenSSLX509CertificateFactory$ParsingException: Error parsing public key
07-22 23:21:09.556 10228 10228 E AndroidRuntime: at com.android.org.conscrypt.NativeCrypto.EVP_parse_public_key(Native Method)
07-22 23:21:09.556 10228 10228 E AndroidRuntime: at com.android.org.conscrypt.OpenSSLKey.getPublicKey(OpenSSLKey.java:270)
07-22 23:21:09.556 10228 10228 E AndroidRuntime: ... 22 more Now, regarding the issue, it seems that the key is incorrectly set or encrypted which is leading to this issue. Please be sure to get the right key from Google Play Console, as this issue isn't really related to the library. I'll keep this issue open in case you want to add more relevant information, otherwise I'll close it in 2 days. |
I have provided the license key as is by grabbing from play store. |
This issue is legit. Please tell me what info I need to provide. |
I just doubt you're using the right key, since the issue clearly states |
@jahirfiquitiva hello Im facing the same problem although I am sure that my key is correct here is my error log from firebase `Fatal Exception: android.view.ViewRootImpl$CalledFromWrongThreadException This only happens when running for the first time and after downloading from google play store. |
Hi there, Thanks for the awesome library.
I am noticing a strange crash that can't even be caught. It happens when license check is enabled and the app has been launched for the very first time when installed from play store(doesn't happen if installed outside of play store). The crash never happens afterwards however.
You can find the logs here:
https://pastebin.com/NpN8DSvZ
Any help would be highly appreciated.
The text was updated successfully, but these errors were encountered: