سؤال

I am using Android Studio for development (I/O Preview 0.2.3) and have used AS since I started my current project. Every time I open the project I get the Frameworks detected: Android framework is detected in the project Configure message in the event log. I can click Configure and it sorts things out straight away but its happens every time I open the project.

Its not really causing any issues, more of an annoyance than anything. Is there anyway of making AS remember that this is an Android project?

هل كانت مفيدة؟

المحلول

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

نصائح أخرى

Try to import projectrather than just opening the project. File --> New--> Import Project

Try open the SDK Manager and check if Android Support Repository is installed. If not, install if and reopen the project.

Change then name of your project. I had the same problem, because my project had name like "Smile&Smile" and the symbol & crashed normal assembly of my project. Also, don't use symbols like &, !, "",'' in the name of projects.

Just change first row with your build.gradle. try use

apply plugin: 'com.android.application'

enter image description here

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top