-
Notifications
You must be signed in to change notification settings - Fork 377
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
NullPointerException while installing with bundle-tool #49
Comments
Looks like a bug in an old version of ddmlib. We'll update the version to fix the bug properly in bundletool. A workaround should be to pass the flag |
Yeah, this workaround worked perfectly. Can install it with bundletool now. Thanks for the fast reply. |
The same bug at my Android 4.4 device |
Now use the flag --allow-downgrade to bundletool , can install apks . Thanks very much. |
I was directed here from #79. I have tried using
|
I had the same issue with @devjta and then used --allow-downgrade flag and this time had the issue @sampalmer mentioned. Here is mine:
I'm able to install to the device with Android version 8.0.0 I'm having the described issue when trying to install to the device with Android version 4.1.2. Any idea? @plecesne |
Obsolete. |
Describe the bug
When trying to install the generated APKs from the AAB, the bundle-tool is not able to install it with Android 4.2 and 4.3 (never tested with 4.4).
Android >= 5.0 are working fine (the SAME files).
Bundletool version(s) affected
Version: [e.g. 0.8.0]
Stacktrace
[BT:0.8.0] Error: null
java.lang.NullPointerException
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:787)
at com.google.common.base.Joiner.toString(Joiner.java:454)
at com.google.common.base.Joiner.appendTo(Joiner.java:106)
at com.google.common.base.Joiner.appendTo(Joiner.java:154)
at com.google.common.base.Joiner.join(Joiner.java:197)
at com.google.common.base.Joiner.join(Joiner.java:187)
at com.google.common.base.Joiner.join(Joiner.java:205)
at com.android.ddmlib.Device.installRemotePackage(Device.java:1024)
at com.android.ddmlib.Device.installPackage(Device.java:902)
at com.android.ddmlib.Device.installPackage(Device.java:880)
at com.android.ddmlib.Device.installPackage(Device.java:869)
at com.android.tools.build.bundletool.device.DdmlibDevice.installApks(DdmlibDevice.java:113)
at com.android.tools.build.bundletool.device.ApksInstaller.installOnDevice(ApksInstaller.java:94)
at com.android.tools.build.bundletool.device.ApksInstaller.installApks(ApksInstaller.java:82)
at com.android.tools.build.bundletool.device.ApksInstaller.installApks(ApksInstaller.java:44)
at com.android.tools.build.bundletool.commands.InstallApksCommand.lambda$execute$3(InstallApksCommand.java:166)
at com.android.tools.build.bundletool.io.TempFiles.lambda$withTempDirectory$0(TempFiles.java:68)
at com.android.tools.build.bundletool.io.TempFiles.withTempDirectoryReturning(TempFiles.java:52)
at com.android.tools.build.bundletool.io.TempFiles.withTempDirectory(TempFiles.java:71)
at com.android.tools.build.bundletool.commands.InstallApksCommand.execute(InstallApksCommand.java:144)
at com.android.tools.build.bundletool.BundleToolMain.main(BundleToolMain.java:88)
at com.android.tools.build.bundletool.BundleToolMain.main(BundleToolMain.java:46)
To Reproduce
At least our app with 3rd party libs is not able to install it via bundle-tool on Android <5 (4.2 and 4.3 tested).
It works fine, when the same AAB file is uploaded into the store (minimum version of our app is 4.2).
Expected behavior
It should install the apk like it install it from the PlayStore.
The text was updated successfully, but these errors were encountered: