Frameworks detected in android studio

前端 未结 8 1268
夕颜
夕颜 2020-12-08 03:03

Frameworks detected: Android framework is detected in the project Configure

I get the above message when I try to build a particular project in android studio 1.4

相关标签:
8条回答
  • 2020-12-08 03:32

    If Android Studio notices a difference in the path to the android SDK folder on disk and the path mentioned in your local.properties file, it will prompt and upon confirmation update the path in local.properties. I think you local.properties file is not retaining the change in SDK path once you close the project. Check you check if something is reverting the changes.

    Also, try saving the local.properties file manually after updating the sdk.dir property with correct path..

    It looks like this in the local.properties file.

    # change the SDK path below to match the folder on your system
    sdk.dir=D\:\\Android\\android-sdk
    
    0 讨论(0)
  • 2020-12-08 03:39

    Following these instructions, they worked for me

    1. Press CTRL+ALT+SHIFT+S. Or Go to File> Project Structure
    2. Go to Project Setting > Facets.
    3. Click + button and add Android-gradle.
    4. Select your project name.
    5. Click Apply and Ok.
    6. Close your project and reopen.
    7. Wait until gradle finishes build your project.
    0 讨论(0)
  • 2020-12-08 03:41

    If anybody finds like me that none of the suggested solutions fix this problem then a simple Invalidate Caches / Restart could fix the issue.

    I struggled with this problem for months on just the one project, every time I wanted to work on it I had to remove and re-import the project.

    0 讨论(0)
  • 2020-12-08 03:42

    Adding under facets didn't work for me. What did: Right click on your project in the Project pane on the left > Open Module Settings > Modules > Click the + to add a module > Android-Gradle

    I also needed to modify some of the paths listed for the manifest/resources/assets etc in my Android module

    0 讨论(0)
  • 2020-12-08 03:44

    Maybe you have to import the project properly and not just opening?

    Goto to File > New Project > Import Project and browse for the project...

    0 讨论(0)
  • 2020-12-08 03:47

    You might have just opened the wrong folder, like the folder ABOVE the project folder. (What I did.) Android Studio will create a .idea folder and open an empty project. If this is the case, delete the created .idea folder and select File>Open and navigate to the correct project folder.

    0 讨论(0)
提交回复
热议问题