内容简介:版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u011133213/article/details/86412176
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u011133213/article/details/86412176
AS提示Please select android sdk
首先这边不讲关于没配置Android Sdk路径 or 项目没有选择Android Sdk的版本。
这边要讲的是在协同开发的过程中,没有将**.gitignore**文件配置正确,导致对方的app.iml文件等上传到git上,被我们拉取下来,导致的错误。
解决方案:
删除主工程目录下的:/.idea/libraries文件夹,最后Sync一下即可。(File->Sync Project with gradle files)
下面提供一个**.gitignore**,一般的配置项
*.iml .gradle /local.properties /.idea/libraries /.idea/modules.xml /.idea/workspace.xml .DS_Store /build /captures .externalNativeBuild # Built application files *.apk *.ap_ # Files for the Dalvik VM *.dex # Java class files *.class # Generated files bin/ gen/ # Gradle files .gradle/ build/ /*/build/ # Local configuration file (sdk path, etc) local.properties # Proguard folder generated by Eclipse proguard/ # Log Files *.log
配置完成后,为了让.gitignore生效,我们需要清除一下缓存哦。~
# 先将当前仓库的文件的暂存区中剔除 git rm -r --cached . # 再添加所有的文件到暂存区,这时.gitignore文件就会生效了 git add . # 提交 git commit -m "fixed untracked files"
以上所述就是小编给大家介绍的《Android Studio编译时没问题,Run运行时提示Please select android sdk》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Types and Programming Languages
Benjamin C. Pierce / The MIT Press / 2002-2-1 / USD 95.00
A type system is a syntactic method for automatically checking the absence of certain erroneous behaviors by classifying program phrases according to the kinds of values they compute. The study of typ......一起来看看 《Types and Programming Languages》 这本书的介绍吧!