Android Question Unable to compile b4a program.. it is giving aapt2.exe unable to start ERROR ...

beelze69

Active Member
Licensed User
Longtime User
Hi,

I recently formatted my PC and installed b4A again.. (b4a 11.8)

My OS is Windows 7 Ultimate 64-bit

I have retained the Android folder from my old installation and have the JDK installed as well and also set the paths correctly.. (see screenshot).
But when I compile an app, it gives error saying aapt2.exe unable to start..(see screenshot).

Please help..

Thanks
 

Attachments

  • screenshot_aapt_exe_unable_to_start_correctly.jpg
    screenshot_aapt_exe_unable_to_start_correctly.jpg
    285.7 KB · Views: 168
  • screenshot_paths_set_in_b4A.jpg
    screenshot_paths_set_in_b4A.jpg
    74.3 KB · Views: 163
Last edited:

Sagenut

Expert
Licensed User
Longtime User
You need to make a complete new Android SDK folder.
Carefully follow all the instructions from here:
https://www.b4x.com/b4a.html
You should also change the folder for Additional Libraries.
Making it inside Program Files will lead to error as it's a reserved folder.
 
Upvote 0

beelze69

Active Member
Licensed User
Longtime User
You need to make a complete new Android SDK folder.
Carefully follow all the instructions from here:
https://www.b4x.com/b4a.html
You should also change the folder for Additional Libraries.
Making it inside Program Files will lead to error as it's a reserved folder.
Hi,

I have removed the configuration entry for the additional libraries..

I followed all the steps mentioned in the link.

However, I am now getting the error that 'aap2.exe cannot start because api-ms-win-crt-private-i1-1-0.dll is missing from your computer..'.
(see screenshot attached)

Requesting for more assistance.

Thanks..
 

Attachments

  • screenshot_aapt_exe_unable_to_start_correctly.jpg
    screenshot_aapt_exe_unable_to_start_correctly.jpg
    25.2 KB · Views: 153
Last edited:
Upvote 0

beelze69

Active Member
Licensed User
Longtime User
Hi,

I have removed the configuration entry for the additional libraries..

I followed all the steps mentioned in the link.

However, I am now getting the error that 'aap2.exe cannot start because api-ms-win-crt-private-i1-1-0.dll is missing from your computer..'.
(see screenshot attached)

Requesting for more assistance.

Thanks..
Hi !

I solved the problem.
I installed Visual C++ Redistributable in which that particular api-ms-win-crt-private-i1-1-0.dll was there... Now I am able to compile successfully..But I am having a different issue now ... My app is not installing in my mobile device... I have disabled Google Protect.. but still it is not installing... checking ... will update further on this...

Thanks ...
 
Upvote 0

beelze69

Active Member
Licensed User
Longtime User
Hi Sagenut,

My problem is solved...

I updated my mobile OS... Now it is working fine.. But dunno exactly what the problem was..

Thanks a lot,
 
Upvote 0
Top