One-stop git.exe Problem
Today, when I used android studio to download a project from git, I encountered a problem, prompting me to say "Can't run Git: git.exe. After a git windows version is released, there is a setting in studio settings.
Set the git.exe path to a valid local path. Click apply.
2. attach source code
Android studio seems to have a bug. If the SDK path set for the first time does not contain the source, you still cannot view it after downloading the source using SDK Manager.
Solution:
1. close all project
Specific close method: File-> Close Project
2. Welcome to Android Studio screen, go to Configure> Project Defaults> Project Structure> SDKs
Re-select the SDK path, of course we can select the last path
3. re-open the project
Note: After resetting the last SDK path, the source code is available when you open the project again.
If not, refer to the following method:
- 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, and go to Sourcepathpanel
- Press the + button, and choose the source directory.
Or
Another approach wocould 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.
3. The Google Play Store cannot upload applications.
Indicates that the APK file can be debugged has been uploaded. Because studio is used for development, it was suspected that it was a gradle problem. Later, we found that the dependent third-party library defined debugger = true in the manifest. xml file!