Android Studio problem summary

Source: Internet
Author: User

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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.