Android Question Build APK - Compile Error adb: failed to open my.apk: No such file or directory - SOLVED . . .

Antonio Ferreira

Member
Licensed User
Longtime User
Today I have this error in build apk : adb: failed to open Glose3.apk: No such file or directory
(I haven't made any changes in B4A, yesterday it compiled without errors)

B4A Version: 12.80
Parsing code. (4.82s)
Java Version: 14
Building folders structure. (2.23s)
Compiling code. (7.96s)

ObfuscatorMap.txt file created in Objects folder.
Compiling layouts code. (0.44s)
Organizing libraries. (1.57s)
(AndroidX SDK)
Compiling resources (2.21s)
Linking resources (1.43s)
Compiling generated Java code. (40.96s)
Finding libraries that need to be dexed. (0.04s)
Dex code (103.81s)
Dex merge (39.05s)
Copying libraries resources (6.13s)
ZipAlign file. (0.95s)
Signing package file (private key). (1.31s)
Installing file to device. Error
adb: failed to open Glose3.apk: No such file or directory


If I build an app bundle, all is well

B4A Version: 12.80
Parsing code. (6.15s)
Java Version: 14
Building folders structure. (0.44s)
Compiling code. (5.48s)

ObfuscatorMap.txt file created in Objects folder.
Compiling layouts code. (0.35s)
Organizing libraries. (0.00s)
(AndroidX SDK)
Compiling resources (0.26s)
Linking resources (1.99s)
Compiling generated Java code. (16.28s)
Finding libraries that need to be dexed. (0.03s)
Dex code (73.31s)
Dex merge (37.64s)
Copying libraries resources (5.02s)
Building app bundle (2.61s)
Signing AAB file (3.53s)
Algorithm: -digestalg SHA1 -sigalg SHA256withRSA
Output file: C:\B4ANDROID\PROJECTS\GLOSE4\Objects\Glose3.aab
Completed successfully.



I commented out two new "Activity Modules" and a new "Service Module" that I had added to the project, and I no longer get this error.
Could it be related to the size of the apk?
The size of the apk is 11521 KB
I activated the new developments again, and I no longer get the error when compiling the Apk ???

When I had the error, I restarted B4A and the computer several times and the error remained.

Now everything is ok but I don't know why


Thanks
 
Last edited:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…