Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Example Analysis of Android Studio problem

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

Android Studio problem example analysis, I believe that many inexperienced people do not know what to do, so this paper summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.

I. git.exe problem

Today, I encountered a problem when downloading a project from git with android studio, prompting me to say Can't run Git: git.exe. After the next git windows version, there is a setting in the studio settings.

Set the path of git.exe to the local valid path, click apply, and get it done.

II. Attach source code

Android studio seems to have a bug. If the SDK path set for * does not contain source, then you will not be able to view it later 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

Reselect the SDK path. Of course, we can choose the last path.

3. Reopen project

Description: after resetting the last SDK path, open the project again and you will have source code.

If not, you can 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 for, and go to Sourcepathpanel

Press the + button, and choose the source directory.

Or

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.

3. The Google Play store cannot upload applications.

Prompt to upload a debuggable APK file. Due to the use of studio development, it was suspected that it was a problem with gradle. It was later found that it was dependent on the third-party library to define debugger=true in the manifest.xml file.

After reading the above, have you mastered the method of example analysis of Android Studio problems? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report