Android: Cannot Resolve Symbol 'geofencetransitionsintentservice'
I am trying to implement a feature for adding and monitoring geofences. I tried to do it by this tutorial but I'm already stuck on the first step. I have also checked build.gradle
Solution 1:
Your GeofenceTransitionsIntentService.java
file obviously has not your root package.
<manifest xmlns:android="http://schemas.android.com/apk/res/android"package="at.at.tuwien.hci.hciss2015">
Your GeofenceTransitionsIntentService.java
should start with:
package at.at.tuwien.hci.hciss2015;
// ...
Then you can declare it in your AndroidManifest.xml
file:
<serviceandroid:name=".GeofenceTransitionsIntentService" />
Here the .GeofenceTransitionsIntentService
implies that GeofenceTransitionsIntentService
in at the root of your package, which is at.at.tuwien.hci.hciss2015
.
Solution 2:
You need the full path to the service. Change it to look like this:
<serviceandroid:name="com.myproject.GeofenceTransitionsIntentService"/>
Where com.myproject
is the appropriate package name.
Post a Comment for "Android: Cannot Resolve Symbol 'geofencetransitionsintentservice'"