Android Question Unable to compile/ load Android 4 app with B4A V13

RJB

Active Member
Licensed User
Longtime User
I've just installed B4a on a new laptop, latest versions from the B4X web page, following the full instructions.
An app that compiles and loads on the old PC will compile/ load on newer versions of android on the new PC but not on V4 android. Error messages vary as follows:
B4X:
1 Android 4.2.2
Installing file to device.    Error
Performing Push Install
AdzScaledDisplay.apk: 1 file pushed, 0 skipped. 13.3 MB/s (5161272 bytes in 0.370s)
    pkg: /data/local/tmp/AdzScaledDisplay.apk
Failure [INSTALL_FAILED_CONTAINER_ERROR]

2 Android 4.2.2
Installing file to device.    Error
Performing Push Install
AdzScaledDisplay.apk: 1 file pushed, 0 skipped. 14.2 MB/s (5161272 bytes in 0.347s)
    pkg: /data/local/tmp/AdzScaledDisplay.apk
Failure [INSTALL_FAILED_DEXOPT]

3 Android 4.4.2
Installing file to device.    Error
Performing Push Install
AdzScaledDisplay.apk: 1 file pushed, 0 skipped. 15.0 MB/s (5161272 bytes in 0.329s)
WARNING: linker: libvc1dec_sa.ca7.so has text relocations. This is wasting memory and is a security risk. Please fix.
WARNING: linker: libvc1dec_sa.ca7.so has text relocations. This is wasting memory and is a security risk. Please fix.
    pkg: /data/local/tmp/AdzScaledDisplay.apk
Failure [INSTALL_FAILED_DEXOPT]

I've tried everything I can find here on the forum but no luck.
I've tried copying the manifest from the old PC to the new in case there is any minor difference, no luck

Differences I can find are:
New Javac.exe, new android.jar
Pages library, old 1.11, new 1.12
Core, old 12.5, new 13.01
Network, old1.53, new 1.54
Phone, old 2.53, new 2.6
XuiViews old 2.56, new 2.6

I've tried copying the old libraries to the new PC and the new ones to the old PC but no difference

Does any one have any suggestions?

Thanks
 

RJB

Active Member
Licensed User
Longtime User
#multiDex: False in Project Attributes gives lots of errors + comment "Add #MultiDex: True to main module."

'empty' pages project is OK. Also added references to all of the changed libraries to the empty project and still OK
 
Upvote 0

RJB

Active Member
Licensed User
Longtime User
Further information:
I tried, as far as possible, removing libraries one at a time, along with the references to them.
When I removed the Runtime permissions library the app loads and tries to run (it fails of course!)
It runs/fails if the library is unchecked and all references removed. It fails to run if the library is checked but no references are enabled.
The library is checked and all references enabled on the old PC, where the app loads and runs on the same tablet on which it fails with the new PC.
Both say the library version is 1.2.
 
Upvote 0

RJB

Active Member
Licensed User
Longtime User
commandlinetools-win-9123335_latest / cmdline-tools ?
Still the same unfortunately.
Tried downloading again as well, no change.
I think I'll try completely uninstalling / re-installing, just in case!
 
Upvote 0

RJB

Active Member
Licensed User
Longtime User
I had already reinstalled - and you are correct it didn't help!
I tried copying both the Android and Java folders from the old PC and substituting folder/ files.
So far the problems seems to be in the C:\Android\extras\b4a_remote area. i.e. it compiles/ loads/ runs if I replace it with that folder from the old PC.
I'll try replacing the individual folders/ files within it to see if I can localise it.
 
Upvote 0

RJB

Active Member
Licensed User
Longtime User
Further info:

With the C:\Android\extras\b4a_remote folder copied from the old PC the app compiles/ loads/ runs OK
with the 'androidx' folder and 'installed-components' text file copied from the downloaded version into C:\Android\extras\b4a_remote it fails

Does that help understand the problem?

Thanks
 
Upvote 0
Top