13518219792

建站动态

根据您的个性需求进行定制 先人一步 抢占小程序红利时代

AndroidStudio问题汇总

一、git.exe问题

今天用Android Studio从git下载项目的时候遇到一个问题,提示说Can't run Git: git.exe。下了一个git windows版本后,在studio的设置里面有一个设置。

设置git.exe的路径为本地的有效路径,点击apply后,搞定。

二、attach source code

android studio貌似有个bug,如果***次设置的SDK路径里不包含source,那么后期使用SDK Manager下载了source后,还是无法查看。

解决办法:

1、close all project

具体close方法:File -> Close Project

2、Welcome to Android Studio screen, go to Configure > Project Defaults > Project Structure > SDKs

重新选择SDK路径,当然我们可以选择上次的路径

3、重新打开project

说明:在重新设置上次的SDK路径后,再次打开项目就有source code了。

如果还不行的话,可以参考下面的方法:

或者

Another approach would be to blow away all of Android Studio's auto-created SDKs and let it rebuild them. To do that

三、Google Play商店无法上传应用

提示上传了可调试 APK文件。由于使用的是studio开发,一度怀疑是gradle的问题。后来发现是依赖的第三方库在manifest.xml文件定义了debugger=true,坑爹!


网站栏目:AndroidStudio问题汇总
网页网址:http://cdbrznjsb.com/article/cdpgjhh.html

其他资讯

让你的专属顾问为你服务