-
-
Notifications
You must be signed in to change notification settings - Fork 136
5.3 build failing (Android) #1329
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
Comments
@erjdriver can you provide a repo to reproduce the crash? |
Unfortunately no. But looking at the stack dump - I see the culprit is At the end it says run with |
And if you try with |
no - I went back to [email protected] and worked. If there's something I can do here to debug - please let me know. |
can you try deleting |
Don't know if it's related to this issue, but I also have had problems building with 5.3.0 when it comes to --release builds. Well, the build works but when the app starts on the device (physical) it crashes on startup, giving some errors pointing to "android.content.pm.PackageManager$NameNotFoundException:" iOS works perfect, and so do Android debug builds (virtual and physical device). I was able to successfully create a release build and run it on a physical device when downgrading to 5.2.1. |
@apsaros could you provide a sample app which has the above mentioned problem or at least the full stacktrace? Also, this seems like a different issue, could you make a new Github one for it? |
@vmutafov yeah, sorry for the hijacking, I thought it might be related sine I can circumvent the issue by downgrading to 5.2.1 as @erjdriver. I've created a separate issue: #1341 |
Hey @erjdriver, could you test with android runtime 5.3.1? |
I was able to debug on Android with 5.3.1 (after failing with 5.3.0 with the above "final class" error). |
@yoat what do you mean by "able to debug"? Do you mean the problem which was present in 5.3.0 is now resolved in 5.3.1? |
Yes @vmutafov, to be clear: this problem appears to be fixed for me. Building, deploying, and running the application on Android are all totally functional after updating to 5.3.1 |
@yoat thanks for the feedback :) |
Uh oh!
There was an error while loading. Please reload this page.
My app used to build ok with 5.2.
I updated to 5.3 and Android build fails - ios build is ok.
Here's the dump:
`
Project successfully prepared (android)
All SASS source files removed from app package
Building project...
Gradle build...
+ setting applicationId
+ applying user-defined configuration from /Users/mini/Projects/publish-android/app/App_Resources/Android/app.gradle
+ using support library version 28.0.0
+ adding nativescript runtime package dependency: nativescript-optimized
+ adding aar plugin dependency: /Users/mini/Projects/publish-android/node_modules/nativescript-background-http/platforms/android/nativescript_background_http.aar
+ adding aar plugin dependency: /Users/mini/Projects/publish-android/node_modules/nativescript-calendar/platforms/android/nativescript_calendar.aar
+ adding aar plugin dependency: /Users/mini/Projects/publish-android/node_modules/nativescript-fingerprint-auth/platforms/android/nativescript_fingerprint_auth.aar
+ adding aar plugin dependency: /Users/mini/Projects/publish-android/node_modules/nativescript-phone/platforms/android/nativescript_phone.aar
+ adding aar plugin dependency: /Users/mini/Projects/publish-android/node_modules/nativescript-purchase/platforms/android/inappbillinghelper-release.aar
+ adding aar plugin dependency: /Users/mini/Projects/publish-android/node_modules/nativescript-social-share/platforms/android/nativescript_social_share.aar
+ adding aar plugin dependency: /Users/mini/Projects/publish-android/node_modules/nativescript-ui-sidedrawer/platforms/android/TNSSideDrawer-release.aar
+ adding aar plugin dependency: /Users/mini/Projects/publish-android/node_modules/nativescript-vibrate/platforms/android/nativescript_vibrate.aar
+ adding aar plugin dependency: /Users/mini/Projects/publish-android/node_modules/nativescript-ui-core/platforms/android/TNSCore-release.aar
+ adding aar plugin dependency: /Users/mini/Projects/publish-android/node_modules/tns-core-modules-widgets/platforms/android/widgets-release.aar
Exception in thread "main" java.lang.VerifyError
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at java.util.concurrent.ForkJoinTask.getThrowableException(ForkJoinTask.java:598)
at java.util.concurrent.ForkJoinTask.reportException(ForkJoinTask.java:677)
at java.util.concurrent.ForkJoinTask.invoke(ForkJoinTask.java:735)
at java.util.stream.ForEachOps$ForEachOp.evaluateParallel(ForEachOps.java:160)
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateParallel(ForEachOps.java:174)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:233)
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:583)
at org.nativescript.staticbindinggenerator.GetInterfaceNames.generateInterfaceFile(GetInterfaceNames.java:39)
at org.nativescript.staticbindinggenerator.Main.main(Main.java:41)
Caused by: java.lang.VerifyError: Cannot inherit from final class
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:817)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.nativescript.staticbindinggenerator.GetInterfaceNames.generateInterfaceNames(GetInterfaceNames.java:68)
at org.nativescript.staticbindinggenerator.GetInterfaceNames.lambda$generateInterfaceFile$0(GetInterfaceNames.java:35)
at org.nativescript.staticbindinggenerator.ThrowingConsumer.accept(ThrowingConsumer.java:11)
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
at java.util.stream.ForEachOps$ForEachTask.compute(ForEachOps.java:291)
at java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:731)
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
FAILURE: Build failed with an exception.
Execution failed for task ':app:runSbg'.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 4s
Command ./gradlew failed with exit code 1`
The text was updated successfully, but these errors were encountered: