Android Question Packaging File Error

Merco

Member
Hi,
I am trying trial version of B4A. But just keep getting "Packaging files. Error" message when I try to run app. Tried to use older SDK build tools, Preview build tools, etc. but no result.
What could be the problem?

Thx
Merco
 

Merco

Member
Can you post the compilation window text?

I've tried examples, this is from "MyFirstProgram", but identical for several other examples I've tried to run:

B4A version: 7.00
Parsing code. (0.00s)
Compiling code. (0.15s)
Compiling layouts code. (0.09s)
Organizing libraries. (0.00s)
Generating R file. (2.91s)
Compiling generated Java code. (4.02s)
Convert byte code - optimized dex. (0.89s)
Packaging files. Error
NOTE: nothing to do
 
Upvote 0

Merco

Member
Thank you for the prompt response, Erel !

I did everything described in your link - latest SDK, made C:\android-sdk, put tools there, donwloaded JAR tool. The JAR tool started and it has installed items I selected, log below. The only problem is when I go to "C:\android-sdk" there are no new installed folders, except "tools"! Where did it install them?

November 20, 2015
---------------------------------------
Accept? (y/N): Info: Preparing "Install Android Support Repository (revision: 47.0.0)".
Info: "Install Android Support Repository (revision: 47.0.0)" ready.
Info: Finishing "Install Android Support Repository (revision: 47.0.0)"
Info: Installing Android Support Repository in C:\android-sdk\extras\android\m2repository
Info: "Install Android Support Repository (revision: 47.0.0)" complete.
Info: "Install Android Support Repository (revision: 47.0.0)" finished.
Info: Preparing "Install Android SDK Platform 24 (revision: 2)".
Info: "Install Android SDK Platform 24 (revision: 2)" ready.
Info: Finishing "Install Android SDK Platform 24 (revision: 2)"
Info: Installing Android SDK Platform 24 in C:\android-sdk\platforms\android-24
Info: "Install Android SDK Platform 24 (revision: 2)" complete.
Info: "Install Android SDK Platform 24 (revision: 2)" finished.
Info: Preparing "Install SDK Patch Applier v4 (revision: 1)".
Info: "Install SDK Patch Applier v4 (revision: 1)" ready.
Info: Finishing "Install SDK Patch Applier v4 (revision: 1)"
Info: Installing SDK Patch Applier v4 in C:\android-sdk\patcher\v4
Info: "Install SDK Patch Applier v4 (revision: 1)" complete.
Info: "Install SDK Patch Applier v4 (revision: 1)" finished.
Info: Preparing "Install Android SDK Build-Tools 25.0.3 (revision: 25.0.3)".
Info: "Install Android SDK Build-Tools 25.0.3 (revision: 25.0.3)" ready.
Info: Finishing "Install Android SDK Build-Tools 25.0.3 (revision: 25.0.3)"
Info: Installing Android SDK Build-Tools 25.0.3 in C:\android-sdk\build-tools\25.0.3
Info: "Install Android SDK Build-Tools 25.0.3 (revision: 25.0.3)" complete.
Info: "Install Android SDK Build-Tools 25.0.3 (revision: 25.0.3)" finished.
Info: Preparing "Install Google Repository (revision: 57)".
Info: "Install Google Repository (revision: 57)" ready.
Info: Finishing "Install Google Repository (revision: 57)"
Info: Installing Google Repository in C:\android-sdk\extras\google\m2repository
Info: "Install Google Repository (revision: 57)" complete.
Info: "Install Google Repository (revision: 57)" finished.
Info: Preparing "Install Google USB Driver (revision: 11)".
Info: "Install Google USB Driver (revision: 11)" ready.
Info: Finishing "Install Google USB Driver (revision: 11)"
Info: Installing Google USB Driver in C:\android-sdk\extras\google\usb_driver
Info: "Install Google USB Driver (revision: 11)" complete.
Info: "Install Google USB Driver (revision: 11)" finished.
Info: Preparing "Install Android SDK Platform-Tools (revision: 26.0.0)".
Info: "Install Android SDK Platform-Tools (revision: 26.0.0)" ready.
Info: Finishing "Install Android SDK Platform-Tools (revision: 26.0.0)"
Info: Installing Android SDK Platform-Tools in C:\android-sdk\platform-tools
Info: "Install Android SDK Platform-Tools (revision: 26.0.0)" complete.
Info: "Install Android SDK Platform-Tools (revision: 26.0.0)" finished.
done
 
Upvote 0

Merco

Member
Hi Erel,

I just made it work, on another computer. Using the above procedure, JAR tool installed all files in c:android-sdk, compiled in B4A and run over Bridge on my Noughat phone, no problems.

What is not clear to me is why jar tool wasnt able to install sdks on that another computer. Could it be anti-virus sandboxing the tool or something similar?

Thanks
Merco
 
Upvote 0

Merco

Member
I checked again in c android-sdk, no new folders that should be there, only "tools". I wanted to run the tool again and repeat the whole process, but the tool says that sdk files are already installed, shows them under "installed" header. Is there any way I could find where is it looking, or reset its values so I can install again. Also, search in windows for i.e. "m2repository" gives nil result.
 
Upvote 0
Top