Android Question Installation Failure via IDE:

epiCode

Active Member
Licensed User
I am getting this error when installing apk either in debug or release mode:

B4X:
B4A Version: 12.50
Parsing code.    (0.29s)
    Java Version: 14
Building folders structure.    (0.20s)
Running custom action.    (0.10s)
Compiling code.    (0.43s)
Compiling layouts code.    (0.01s)
Organizing libraries.    (0.00s)
    (AndroidX SDK)
Compiling resources    (0.14s)
Linking resources    (0.56s)
Compiling debugger engine code.    (0.04s)
Compiling generated Java code.    (0.06s)
Finding libraries that need to be dexed.    (0.02s)
Dex code    (1.12s)
Dex merge    (5.18s)
Copying libraries resources    (0.42s)
ZipAlign file.    (0.07s)
Signing package file (private key).    (0.76s)
Installing file to device.    Error
adb: failed to install test_RAPID_DEBUG.apk:
Exception occurred while executing:
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.endsWith(java.lang.String)' on a null object reference
    at com.android.server.pm.PackageManagerShellCommand.runInstall(PackageManagerShellCommand.java:968)
    at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:179)
    at android.os.ShellCommand.exec(ShellCommand.java:103)
    at com.android.server.pm.PackageManagerService.onShellCommand(PackageM

There are no changes made anywhere.
Other apps give same error on compiling.
device is online and shows in "adb devices" list
adb shell works fine
 

teddybear

Well-Known Member
Licensed User
Which emulator do you use? try to create anothor emulator
 
Upvote 0

teddybear

Well-Known Member
Licensed User
Try to install android studio avd or bluestack?
 
Upvote 0
Top