Android Question AAPT Error: Please help anyone

metzeller_2013

Member
Licensed User
Longtime User
Error Code:
B4X:
B4A Version: 8.30
Parsing code.    (0.22s)
Compiling code.    (0.65s)
Compiling layouts code.    (0.13s)
Organizing libraries.    (0.00s)
Generating R file.    (0.26s)
Compiling debugger engine code.    (5.07s)
Compiling generated Java code.    (4.93s)
Convert byte code - optimized dex.    (7.70s)
Packaging files.    Error

AAPT path: D:\adt-bundle-windows-x86-20130522\sdk\tools\..\build-tools\23.0.1\aapt.exe
Exit code:-1073741819

It's been awhile since I open my code, and I've got the new B4A ver 8.30 upgrade, changed my android.jar to 26. So I tested my code and run it to my 2 test units. 1st Unit is a Cherry Mobile with Android ver 7.0 and 2nd Unit is Samsung J7 Prime With Android 6.0.1.

On the Cherry Mobile Android 7.0 code runs ok upon compilation
On samsung I'm getting the error code posted above..

any idea??

I was about to add a new feature to my app

I already have the android tools 23
 
Last edited:

metzeller_2013

Member
Licensed User
Longtime User
B4X:
B4A Version: 8.30
Parsing code.    (0.23s)
Compiling code.    (0.56s)
Compiling layouts code.    (0.08s)
Organizing libraries.    (1.00s)
Generating R file.    Error

Now This...
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Setup a new SDK with the B4A SDKManager.

See install instructions here https://www.b4x.com/b4a.html

Start with a new blank folder.
Follow the Video.
 
Upvote 0

metzeller_2013

Member
Licensed User
Longtime User
@DonManfred
Sir if I download/create a new SDK setup starting from scratch. Is it possible to just copy paste this new SDK folder setup to my other B4A installation on different PC?
 
Upvote 0

Peter Simpson

Expert
Licensed User
Longtime User
100% yes as that is exactly what I did with my spare new spare laptop.

Just run B4A SDK Manager, install everything that you want to use and also all the recommended options, once you are happy that everything is working perfect on PC1, copy the SDK folder from PC1 to PC2 and install then point B4A/B4A SDK Manager to your new SDK folder, everything will just work with no updates necessary.

Enjoy...
 
Upvote 0
Top