Android Question After I set up the private sign key, I will always get the following error(in compile mode)

AndyChang

Member
Licensed User
After I set up the private sign key, I will always get the following error(in compile mode) when I start a new FILE in IDE and run it.

B4X:
B4A Version: 7.30
Parsing code.    (0.00s)
Compiling code.    (0.02s)
Compiling layouts code.    (0.00s)
Organizing libraries.    (0.00s)
Generating R file.    (0.06s)
Compiling generated Java code.    (0.78s)
Convert byte code - optimized dex.    (0.24s)
Packaging files.    (0.08s)
Copying libraries resources    (0.00s)
Signing package file (private key).    (0.41s)
ZipAlign file.    (0.01s)
Installing file to device.    Error
Failed to install testread.apk: Failure [-26: Package b4a.example new target SDK 19 doesn't support runtime permissions but the old target SDK 23 does.]
 

AndyChang

Member
Licensed User
Several day ago, I set up the private sign key for study the firebase.
After that time, I cannot run a new file(program). It will have an error occurred while compiling.
The error is as follow
B4X:
B4A Version: 7.30
Parsing code. (0.00s)
Compiling code. (0.02s)
Compiling layouts code. (0.00s)
Organizing libraries. (0.00s)
Generating R file. (0.06s)
Compiling generated Java code. (0.78s)
Convert byte code - optimized dex. (0.24s)
Packaging files. (0.08s)
Copying libraries resources (0.00s)
Signing package file (private key). (0.41s)
ZipAlign file. (0.01s)
Installing fileto device. Error
Failed to install testread.apk: Failure [-26: Package b4a.example new target SDK 19 doesn't support runtime permissions but the old target SDK 23 does.]
 
Upvote 0

Computersmith64

Well-Known Member
Licensed User
Longtime User
I'm guessing you are not changing the package name when you create a new project. Either change the package name (CTRL-B & then change b4a.example to something else) or try uninstalling the B4A Example app from the device & then compile the new one. You should only have to do that once.

- Colin.
 
Upvote 0

AndyChang

Member
Licensed User
Dear Colin,
Thanks for your very quick response to help me.
I have not yet install the new app, it fail while compiling.
Andy
 
Upvote 0

Computersmith64

Well-Known Member
Licensed User
Longtime User
Dear Colin,
Thanks for your very quick response to help me.
I have not yet install the new app, it fail while compiling.
Andy
Yes - it fails while compiling at the point where it is trying to install on the device. Check on your device & if you have an app called B4A Example, uninstall it.

- Colin.
 
Upvote 0

Computersmith64

Well-Known Member
Licensed User
Longtime User
Correction - the app you need to uninstall on your device is called "testread.apk".
 
Upvote 0

AndyChang

Member
Licensed User
Dear Colin
I found that the error only occur when I install it on emulator. If I install the apk in my Asus phone, It runs OK.
Usually I test programs on the emulator. So I didn't install testread.apk in my phone before.
How do I do so that I can also install on emulator
Andy
 
Upvote 0

Computersmith64

Well-Known Member
Licensed User
Longtime User
Dear Colin
I found that the error only occur when I install it on emulator. If I install the apk in my Asus phone, It runs OK.
Usually I test programs on the emulator. So I didn't install testread.apk in my phone before.
How do I do so that I can also install on emulator
Andy
You need to uninstall it from the emulator.

- Colin.
 
Upvote 0
Top