Android Studio问题汇总

移动开发 Android
今天用android studio从git下载项目的时候遇到一个问题,提示说Can't run Git: git.exe。下了一个git windows版本后,在studio的设置里面有一个设置。设置git.exe的路径为本地的有效路径,点击apply后,搞定......

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

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

  • 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,坑爹!

责任编辑:闫佳明 来源: oschina
相关推荐

2015-11-27 12:59:11

Android技巧提高效率

2015-01-07 15:21:30

Android Stu代码格式化

2011-08-12 09:52:35

iPhone开发TableviewUITextField

2014-03-18 13:27:55

Redis数据存储

2010-09-15 09:20:40

2013-08-13 10:59:03

Android Stu启动

2009-07-22 08:59:01

Windows xp升Windows 7系统升级

2010-05-13 13:27:23

2009-09-22 09:22:03

.NET常见问题

2012-02-06 10:37:07

Java

2013-08-21 14:57:42

objective-c问题

2013-07-04 15:05:14

Android

2013-05-17 10:48:40

GoogleAndroid Stu

2013-05-21 10:17:28

GoogleAndroid Stu

2017-03-02 10:30:57

AndroidAndroid Stu技巧

2016-11-21 16:23:24

Android StGoogle

2014-06-24 10:34:08

Android Stu教程

2014-07-14 10:54:13

Android Stu

2010-08-17 09:16:23

2020-10-18 12:00:27

前端开发架构
点赞
收藏

51CTO技术栈公众号