Bug #4480

R is Broken

Added by Anonymous almost 3 years ago. Updated over 2 years ago.

Status:FeedbackStart date:01/31/2015
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:Backlog
Component:

Description

Tested in Eclipse 4.4.1
Android SDK 5.0.1

R 'cannot be resolved to a variable' in the following resources:
CacheWordService.java
CacheWordSettings.java
CirclePageIndicator.java
CustomViewBehind.java
EmojiButtonListener.java
EmojiPagerAdapter.java
IconPageIndicator.java
LinePageIndicator.java
MemorizingActivity.java
MemorizingTrustManager.java
SlidingActivityHelper.java
SlidingMenu.java

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

History

#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.

#2 Updated by n8fr8 over 2 years ago

  • Target version set to Backlog

Also available in: Atom PDF