Hello developers i have an problem when i use context compat to check self permission as it show in picture below…
any solution…
Context compat error?!?
You have misspelled it. replace n with m.
ALWAYS check your spelling because an IDE is a grammar policeman!
Long press on it and see what AIDE offers for a solution. It might be an import or something.
Ok then add this import
import android.support.v4.content.ContextCompat;
Can you copy it to me please
Using the * sign in imports might lead to ambiguations that causes these types of errors.
Have you added the support libraries? Screenshot of your dependencies?
Also try extending AppCompatActivity instead of Activity
Looks like you are new in AIDE. Dependencies are located in your app’s build.gradle file
Yes I am new…
there are any online courses to learn using AIDE IDE…
Create a new project using AIDE and explore the files. Search google to see what they are for.
Ok ,Thank you for helping
compile ‘com.android.support:appcompat-v7:23.2.1’
Add this dependency to your build level gradle file.
You should use aide helper app to create a project for aide . which takes care of all these things.