-
-
Notifications
You must be signed in to change notification settings - Fork 40
Bundle not working on Android 7.1 #91
Comments
Hi @abhayastudios, I couldn't reproduce that error with any of our sample apps. I see from the stack trace that the error happened in a file named |
@sis0k0 I don't have such a file. Actually I thought it was part of this plugin. When I try to find it in my project dir I don't get anything (so doesn't seem to be part of the plugins either). I even opened the APK and tried to find anything related. Actually I do think it is related to this project, see for example #7. I see for example that |
After searching a little more it seems it is originating from the dev dependency
|
Oh, I'm sorry, I haven't noticed that you may be using our snapshot plugin. It provides a great way to reduce the startup time of your android app. However, snapshots are not compatible with the webpack plugin yet. So, for now you'll have to remove the snapshot plugin from your dependencies. |
@sis0k0 to be completely honest I am not consciously using the snapshot plugin, it just came as a devDependency with the NativeScript 2.5.0 project template. If I bundle like this |
Actually, it's just the opposite - the snapshot plugin is activated only when building for release (because the debugger doesn't work with snapshots). I agree this can be kinda confusing since the plugin doesn't work with webpack but its dependency comes with our project template. We'll address this problem. Let me know if removing the plugin solves the problem on Android 7.1. I'll keep this issue open since then. |
Yes that seems to have fixed the problem :) Since the project template contains the dependency for nativescript-dev-android-snapshot, it would probably be a good idea to mention in this project's README that it needs to be deleted. WDYT? By the way, in your experience what would result in faster startup time a build with snapshots or with webpack? The point of using webpack for me is to reduce startup time... (I dont care too much about the smaller file size). Thanks! |
Hey, there! Sorry for the late reply. The startup time heavily depends on the device, the android API level and mostly - on your app. First of all, the snapshot works only for Android. Also it is applied on the code from But as I said, it heavily depends on your app and it would be the best to make some measurements with both options on different devices. I'll be happy if you share your results with us! |
I was able to successfully bundle with
v0.3.5
and test on an older Android 5 device & iOS simulator.However, after uploading the package as alpha to the Android Play Store, a tester reported that the app crashed on Android 7.1 (see stack below).
I checked and my
app/vendor-platform.android.ts
is exactly like the template in the plugin.Any advice?
The text was updated successfully, but these errors were encountered: