Android Question B4A compile error

IndieDev

Active Member
Licensed User
Hi,

Trying to compile the old CCTV app using the latest B4A.

Getting this error.... Kindly help.
B4A Version: 9.80
Java Version: 11
Parsing code. (0.14s)
Building folders structure. (0.02s)
Compiling code. (0.13s)

ObfuscatorMap.txt file created in Objects folder.
Compiling layouts code. (0.00s)
Organizing libraries. (0.00s)
(AndroidX SDK)
Generating R file. (1.15s)
Compiling generated Java code. (5.00s)
Convert byte code - optimized dex. (2.15s)
Packaging files. (0.61s)
Copying libraries resources (0.00s)
Signing package file (debug key). (1.82s)
ZipAlign file. (0.29s)
Installing file to device. Error
The system cannot find the file specified
 

Peter Simpson

Expert
Licensed User
Longtime User
Upvote 0

IndieDev

Active Member
Licensed User
Ok. Sorted it out.
Had to change in manifest

<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="28"/>

Though it still displays

Installing file to device. Error
The system cannot find the file specified

The apk file is created and I manually copy/paste on my phone.

Please update if I need to make any additional settings.

Thanks.
 
Upvote 0

IndieDev

Active Member
Licensed User
Oh! ADB issue? ADB was missing in the "E:\Android\platforms\android-28" folder (Is it where its supposed to be?)

Am updating the SDK right now.

Will revert after checking.

Have you read this feed, especially the last post???
 
Upvote 0

IndieDev

Active Member
Licensed User
Found adb.exe in the "E:\Android\platform-tools" folder.

Issue still persists.

Once updation is over will check and revert.

Thanks, Peter.
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Are you able to compile other projects?

You don't need to search for adb. Everything needed is included when you download the packages from the installation instructions.
 
Upvote 0

IndieDev

Active Member
Licensed User
Are you able to compile other projects?

You don't need to search for adb. Everything needed is included when you download the packages from the installation instructions.

Hi Erel,

I had followed the instructions for the packages, but was still getting the error.

After updating the SDK, it compiled and copied the apk file.

B4A Version: 9.80
Java Version: 11
Parsing code. (0.01s)
Building folders structure. (0.02s)
Compiling code. (0.05s)

ObfuscatorMap.txt file created in Objects folder.
Compiling layouts code. (0.00s)
Organizing libraries. (0.00s)
(AndroidX SDK)
Generating R file. (0.00s)
Compiling generated Java code. (2.37s)
Convert byte code - optimized dex. (1.06s)
Packaging files. (0.37s)
Copying libraries resources (0.00s)
Signing package file (debug key). (1.43s)
ZipAlign file. (0.14s)
Installing file to device. (15.47s)
Device serial: xxxxxxxxxxxxxx
Completed successfully.

Thanks Peter and Erel. ?:)
 
Upvote 0

IndieDev

Active Member
Licensed User
Just a curious question.

Don't you guys sleep??! ;)

Both of you replied back so fast!!!

Thanks a lot for your help
 
Upvote 0
Top