Cannot allow Android android - Android application - intelliJ

I am using intellij-idea to develop an Android application. I created a project with an android module, but not one of them:

import android.app.Activity; import android.os.Bundle; 

I get cannot resolve android symbol . I searched for this problem, but none of the comments I found there seem to be debugging my problem.

+6
source share
2 answers

What you need to do

  1. Select your android project
 2.press ctrl + alt + shift + S
 3. Select SDK from the project settings
 4. Check the files under the class path tab
 5. There must be android.jar, res, annotations.jar
 Probably there should be missed one or several files in step 5.
 Then,
 6. Go to Android SDK home path field and add your SDK folder again
 files even though you have all the jars and still you are getting the error, then remove all the jars from the class path and add them again (like in step 6).
 7. Build menu -Rebuild your project.

Your mistakes should now disappear.

+7
source

I have reciprocal guys
1- press ctrl + alt + shift + s
2 - in the "Modules" panel, click the name of your project
3 - change the sdk compilation version to a new one
4-click apply and fine and then sync your project
5-done, I hope the best for you

0
source

Source: https://habr.com/ru/post/947945/


All Articles