Home > Mobile >  Why don't refer to the android. Support. The v4. App. ActivityCompat class
Why don't refer to the android. Support. The v4. App. ActivityCompat class

Time:11-16

I am a Android studio beginner, clearly in the build. Add the implementation gradle 'com. Android. Support: support - v4:29.0.0' (by File - & gt; The Project Structure - & gt; Dependencies - & gt; Add app), but in the program can't import (see below), who is a great god, please help to reassure,

CodePudding user response:

Is in gold navigation amap. Navi. Demo. The inside of the util CheckPermissionsActivity inside the reference error,

CodePudding user response:

Need to import the V4 JAR package? Guide in as if is not, and may be a version conflict error lead to other modules.

CodePudding user response:

Support libraries are now can't use, must use androidx library, open your project & gt; File> Project Structure> Dependencies> App> Click Declared Dependencies under the upper left corner of the plus sign & gt; Will pop up a dialog box & gt; The input you want to add repository (such as ActivityCompat) & gt; Search> Finding androidx library add the opening line

CodePudding user response:

Can't Serch ActivityCompat
  • Related