I downloaded the ARM build just now and encountered the same error while importing the xwalk_core_library
into eclipse.
I fixed it by executing the prepare_r_java.py
script externally through python and importing the generated R.java
file in classes where it was referenced.
Also, after looking around, I found that the issue that you've mentioned is actually a bug. check it here.
Turning off 'Build Automatically' in eclipse fixes it.
EDIT : The above method still threw the error while exporting the apk file and thus failed the export process.
In order to get the whole thing to compile and work without the nag, Here's what I did before importing the xwalk_core_library
into eclipse.
Delete
.externalToolBuilders
folder.Edit
.project
file and delete the following lines from line no.18 to 27<buildCommand> <name>org.eclipse.ui.externaltools.ExternalToolBuilder</name> <triggers>auto,full,incremental,</triggers> <arguments> <dictionary> <key>LaunchConfigHandle</key> <value><project>/.externalToolBuilders/prepare_r_java.launch</value> </dictionary> </arguments> </buildCommand>
Edit
build.xml
and delete the following line from line no.27<import file="precompile.xml" />
Delete
precompile.xml
andprepare_r_java.py
Now import the library into eclipse. :)