-
-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Error when running on real android device #628
Comments
Here is more info. Thanks to @thiagoa1 who provided public class BaseBundle { ... }
public final class Bundle implements Parcelable, Cloneable { ... } This is all fine, however up to API level 20 (including) // up to API level 20 (including)
public final class Bundle implements Parcelable, Cloneable { ... } Starting from API level 21 // starting from API level 21
public class BaseBundle { ... }
public final class Bundle extends BaseBundle implements Cloneable, Parcelable { ... } So, when we generate matadata from |
Android API level 21 introduces class hierarchy change. The base class of android.os.Bundle is changed from java.lang.Object to android.os.BaseBundle and some of its methods are hoisted to the base class. However, on some devices like Xiaomi Redmi BaseBundle is not super class of Bundle as it is in android.jar from which we generate the metadata. This causes JNI error when trying to call any of the hoisted methods.
Android API level 21 introduces class hierarchy change. The base class of android.os.Bundle is changed from java.lang.Object to android.os.BaseBundle and some of its methods are hoisted to the base class. However, on some devices like Xiaomi Redmi BaseBundle is not super class of Bundle as it is in android.jar from which we generate the metadata. This causes JNI error when trying to call any of the hoisted methods.
Moved from NativeScript/nativescript-cli#2140
related to #404
Hey,
I don't know if i'm doing something wrong, but when i try to run a very basic app on a device with :
Then app install and run well, but the console spam (a lot) this error, making debug very difficult :
https://gist.github.com/DavidBabel/b595ef8d3b9f5e064ae804dbf9aff5eb
My device is a serrano LTE (samsung galaxy S4 mini) running a 6.0 CyanogenMod, and here are my Nativescript components versions :
https://gist.github.com/DavidBabel/fb9283040ca891f1873f503cb6d7cd3a
Am i doing something wrong ?
Thanks.
The text was updated successfully, but these errors were encountered: