Android Studio - Estimote SDK - Could not find class

I am creating an application using the Estimote Android SDK and Android Studio. I added the rating-sdk-preview.jar to my libs folder and the IDE recognizes it (no errors in any of my .java files), but when it loads on my HTC One, I get the following errors in logcat and I get the message " Sorry the app crashed on my phone:

 ... 05-06 18:55:44.662 23179-23179/com.freshnode.daze E/dalvikvm﹕ Could not find class 'com.estimote.sdk.Region', referenced from method com.freshnode.daze.MainActivity.<clinit> 05-06 18:55:44.662 23179-23179/com.freshnode.daze E/dalvikvm﹕ Could not find class 'com.estimote.sdk.BeaconManager', referenced from method com.freshnode.daze.MainActivity.<init> ... 

I tried to go to the project structure and add the library through this, in my gradle properties I have:

 dependencies { compile files('libs/estimote-sdk-preview.jar') compile 'com.android.support:gridlayout-v7:19.0.0' compile 'com.android.support:appcompat-v7:19.0.0' } 

Here is the beginning of my .java file:

 public class MainActivity extends ActionBarActivity { private static final String ESTIMOTE_PROXIMITY_UUID = "B9407F30-F5F8-466E-AFF9-25556B57FE6D"; private static final Region ALL_ESTIMOTE_BEACONS = new Region("regionId", ESTIMOTE_PROXIMITY_UUID, null, null); private BeaconManager beaconManager = new BeaconManager(this); @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); if (savedInstanceState == null) { getSupportFragmentManager().beginTransaction() .add(R.id.container, new PlaceholderFragment()) .commit(); } } 

So, I'm very excited, can someone help me?

+6
source share

All Articles