N
N
Nikolay Baranenko2018-04-03 14:58:27
Android
Nikolay Baranenko, 2018-04-03 14:58:27

Why doesn't the project see android.support.v7.app.ActionBarActivity?

Hello.
I want to add to the application the ability to read information from the phone's sensors.
Made a stub of the SensorActivity class

package com.example.drno.android_app_1;

import android.support.v7.app.ActionBarActivity;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
import android.os.Build;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.TextView;
import com.example.drno.android_app_1.R;

import static android.content.Context.SENSOR_SERVICE;

public class MainActivity2 extends ActionBarActivity implements SensorEventListener {

}

and the problem was found again, the project does not see the android.support.v7.app.ActionBarActivity
classes Previously, this problem was solved by adding the dependency
compile "com.android.support:support-core-utils:27.1.0"
to build.gradle This project does not it turned out, I can’t understand why ...
Link to the project sources on GitHub

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Perelygin, 2018-05-29
@orcDamnar

you need to carefully check the dependencies. in the repositories add the google () repo. update the plugin version to the latest. 3.1.2. update wrapper version to 4.6. clear the cache in the project. and turn off the Configure On Demand function in the compiler settings and try again. in general, core-utils has nothing to do with it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question