How to resolve com.estimote.examples.demos.R?

I am trying to work with the DistanceBeaconActivity but “import com.estimote.examples.demos.R” causes an error.
“R” seems to be important to many activities and adapters. How do I resolve this reference?


“R” is the class that contains all the resources:

It should be there automatically. What version of Android Studio are you on?

1.51 … on a Mac

Any .gradle or manifest files I should check?

There’s been precedence for this error:
I am using Android Studio though.

I copied the folder com.estimote.examples.demos over to my project directory to play around with things. All other imports work fine.

this my file:

apply plugin: ''

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.1"

    defaultConfig {
        applicationId "com.example.zzz.locationtest"
        minSdkVersion 18
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), ''

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    testCompile 'junit:junit:4.12'
    compile ''
    compile ''
    compile 'com.estimote:sdk:0.10.0@aar'

Did you only copy the “src” files? For resources, you’ll also need to copy stuff from the “res” folder I guess. And you might have to change “com.estimote.exaples.demos” into your own package name.