R is Broken
Tested in Eclipse 4.4.1
Android SDK 5.0.1
R 'cannot be resolved to a variable' in the following resources:
I tried running clean and also the maven test script to no avail. Furthermore, the Maven test failed in multiple environments. Here is an output from my xubuntu bash:
[ERROR] Error when generating sources.
org.apache.maven.plugin.MojoExecutionException: No Android SDK path could be found. You may configure it in the pom using ... or ... or on command-line using -Dandroid.sdk.path=... or by setting environment variable ANDROID_HOME
This doesn't make much since to me since my env variable "ANDROID_HOME" is pointing correctly to the Android SDK in my system. If I could make a recommendation, deploying this application in Eclipse could be more dev-friendly, as after several build attempts following the README verbatim I was ultimately unsuccessful
#1 Updated by hans almost 3 years ago
- Status changed from New to Feedback
The R failing issue is almost always related to Eclipse getting confused by things that happens on the command line, like running `mvn` or `git clean
fdx`, or anything that modifies files. It can usually be fixed by running Project -> Clean... in Eclipse.