Android Studio - “在项目中检测到Android框架"; [英] Android Studio - "Android framework is detected in the project"

查看:34
本文介绍了Android Studio - “在项目中检测到Android框架";的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Android Studio 进行开发(I/O 预览版 0.2.3)并且自从我开始我的当前项目以来一直使用 AS.每次打开项目时,我都会在事件日志中收到 Frameworks detection: Android framework is detected in the project Configure 消息.我可以单击 Configure 并立即将事情整理好,但每次我打开项目时都会发生这种情况.

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.

它并没有真正引起任何问题,比任何事情都更令人烦恼.有没有办法让 AS 记住这是一个 Android 项目?

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?

推荐答案

如果 Android Studio 发现磁盘上 android SDK 文件夹的路径与local.properties 中提到的路径存在差异em> 文件,它会提示并在确认后更新local.properties 中的路径.我认为您的 local.properties 文件在您关闭项目后不会保留 SDK 路径中的更改.检查您是否有什么东西正在恢复更改.

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.

另外,尝试在使用正确路径更新 sdk.dir 属性后手动保存 local.properties 文件..

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

它在 local.properties 文件中看起来像这样.

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

这篇关于Android Studio - “在项目中检测到Android框架";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆