Generated Java files wont compile?

AlexDev

New Member
Compiling code. 0.02
Generating R file. 0.02
Compiling generated Java code. Error
javac 1.6.0_26

Any idea how to fix this? Please help!
 

jalle007

Active Member
Licensed User
Longtime User
same error here. i dont understand i always run all projects from same folder and now get this:

B4X:
Parsing code.                           0.04
Compiling code.                         0.15
   Using existing AndroidManifest.xml.
(Project - Do Not Overwrite Manifest option is checked)
AndroidManifest-Example.xml file will be created instead.
Compiling layouts code.                 0.03
Generating R file.                      0.07
Compiling generated Java code.          Error
javac 1.6.0_38
javac: file not found: gen\com\jalle\wifimap\R.java
Usage: javac <options> <source files>
use -help for a list of possible options

This error usually happens when you save the project under a restricted folder such as "Program Files".
 
Upvote 0

jalle007

Active Member
Licensed User
Longtime User
Lol it was eror in manifest file . There was some left over from previous project like package name and android:label.

PS: Is it possible that in next version there is better ocntrol of manifest file. because many times if i make change in IDE i have to change it in manifest or it becomes out of date...
 
Upvote 0

NJDude

Expert
Licensed User
Longtime User
PS: Is it possible that in next version there is better ocntrol of manifest file. because many times if i make change in IDE i have to change it in manifest or it becomes out of date...

You should NOT use the "Do not overwrite manifest file", that feature has been deprecated, by having that you are not allowing the IDE to update the changes you make.
 
Upvote 0
Top