Android Question Help please. error when packaging the project files

Rorry

Member
Licensed User
Hi,

i get this error when i try to compile the project
i uninstalled & reinstalled, reinstalled the keystore,cleaned the project... but still have this error.

ObfuscatorMap.txt file created in Objects folder.
Compiling layouts code. 0.03
Generating R file. 1.39
Compiling generated Java code. 1.39
Convert byte code - optimized dex. 4.90
Packaging files. Error
Unable to add 'classes.dex' to 'bin\temp.ap_'
 

Rorry

Member
Licensed User
thanks margret. this is only what i didnt try (rebooting the pc). i give a try right now
 

Rorry

Member
Licensed User
No :( still get this error.

i have "access denied" when i try to open,copy,... this file (classe.dex).

no problem with "classe.dex" of other projects.

its only about this project. i even tried to create a new project,copying the code and ressources and same error.

really dont know what to do and where to look.
 
Last edited:

Rorry

Member
Licensed User
Hi erel.
already tried but nothing...
it's because b4a have not access to classe.dex (access denied) when it try to use this file.

So, a specific library is causing this error.
i took off all the code,all the files from "Files" but same error.
unselected all libs then worked so far.
im now selecting libs but one after one i was using to see wich one caused this.
 
Last edited:

Rorry

Member
Licensed User
I found it :)

It was > nvictlthdme.jar / nvictlthdme.xml

the leadbolt libs. Everything works well now...

Thanks to margaret and erel for their help.
 

francoisg

Active Member
Licensed User
Hi all, I am getting the same error after my machine crashed and I had to re-install everything. My system is a virtual machine (Win8 64 bit, B4A 3.82) - same as I had before where everything worked without any issues.

Please see below my compilation log:

Parsing code. 0.17
Compiling code. 0.42
Compiling layouts code. 0.04
Generating R file. 0.11
Compiling generated Java code. 2.07
Convert byte code - optimized dex. 2.48
Packaging files. Error

Any ideas would be helpful as I am out of ideas now (cleaned project, rebooted, reinstalled b4a, reinstalled java jdk, tried another android sdk version ...)

Regards,
Marius
 

francoisg

Active Member
Licensed User
Does it happen with all your projects?
Hi,
yes is seems to be happening with all projects. The funny thing is, sometimes, when I open a project I can compile if B4A bridge is not connected. But only once, after that I get the error ...
 
Top