Everything was fine, but after reinstalling Android Studio there were problems, I don’t know how to fix it. Help me please )
package com.example.turismgeofence; public class MyGeofence { private static final int time = 60000; private int id; private int transitionType; private double latitude; private double longitude; private double radius; public MyGeofence(int id, double lat, double lng, double radius, int type) { this.id = id; this.latitude = lat; this.longitude = lng; this.radius = radius; this.transitionType = type; } public Geofence toGeofence() { return new Geofence.Builder() .setRequestId(String.valueOf(id)) .setTransitionTypes(transitionType) .setCircularRegion(latitude, longitude, radius) .setExpirationDuration(time) .build(); } } Here such errors appear
D:\Android\TurismGeofence\app\src\main\java\com\example\ turismgeofence\MyGeofence.java Error:(26, 12) error: cannot find symbol class Geofence Error:(28, 28) error: package Geofence does not exist Error:Execution failed for task ':app:compileDebugJavaWithJavac'. > Compilation failed; see the compiler error output for details.
Geofenceclass is it in the same package? - Eugene Krivenjacom.google.android.gms:play-services-location:11.0.4- Eugene Krivenja