AndroidStudio问题的示例分析

Android Studio问题的示例分析,相信很多没有经验的人对此束手无策,为此本文总结了问题出现的原因和解决方法,通过这篇文章希望你能解决这个问题。

成都服务器托管,创新互联提供包括服务器租用、IDC机房托管、带宽租用、云主机、机柜租用、主机租用托管、CDN网站加速、域名注册等业务的一体化完整服务。电话咨询:028-86922220

一、git.exe问题

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

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

Android Studio问题的示例分析

二、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了。

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

  • Close all open projects

  • From the Welcome to Android Studio screen, go to Configure > Project Defaults > Project Structure > SDKs

  • Choose the appropriate Android API SDK that you installed source for, and go to Sourcepathpanel

  • Press the + button, and choose the source directory.

或者

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

  • Exit Android Studio

  • Delete the jdk.table.xml file, which on MacOS will be in your home directory underLibrary/Preferences/AndroidStudioPreview

  • Relaunch Android Studio

  • Go into Project Structure (either from the Welcome screen or from a project), and choose theAndroid SDK tab

  • Make sure the Android SDK location and JDK location are correct.

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

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

看完上述内容,你们掌握Android Studio问题的示例分析的方法了吗?如果还想学到更多技能或想了解更多相关内容,欢迎关注创新互联行业资讯频道,感谢各位的阅读!


标题名称:AndroidStudio问题的示例分析
标题链接:http://bzwzjz.com/article/pepshp.html

其他资讯

Copyright © 2007-2020 广东宝晨空调科技有限公司 All Rights Reserved 粤ICP备2022107769号
友情链接: 重庆电商网站建设 营销型网站建设 教育网站设计方案 网站建设公司 重庆外贸网站建设 成都企业网站建设 成都营销网站建设 重庆网站制作 定制网站设计 成都网站建设 网站设计 成都网站设计公司 专业网站建设 网站建设改版 成都网站设计 成都网站建设 定制级高端网站建设 成都网站建设 网站建设 网站建设推广 外贸营销网站建设 达州网站设计