android-studio

Android Development which folders to exclude for windows defender?

て烟熏妆下的殇ゞ 提交于 2020-12-29 09:06:41
问题 I excluded the follwing folders in windows defender, but the "Antimalware Service executable" is still using a lot of cpu. C:\Program Files\Android\Android Studio C:\Users\ME\.android C:\Users\ME\MyAndroidProjects C:\Users\ME\AppData\local\Android Which folder/file did I forget? 回答1: This is now described in official documentation: Gradle cache %USERPROFILE%\.gradle Android Studio projects %USERPROFILE%\AndroidStudioProjects Android SDK %USERPROFILE%\AppData\Local\Android\SDK Android Studio

Android Development which folders to exclude for windows defender?

≯℡__Kan透↙ 提交于 2020-12-29 09:06:30
问题 I excluded the follwing folders in windows defender, but the "Antimalware Service executable" is still using a lot of cpu. C:\Program Files\Android\Android Studio C:\Users\ME\.android C:\Users\ME\MyAndroidProjects C:\Users\ME\AppData\local\Android Which folder/file did I forget? 回答1: This is now described in official documentation: Gradle cache %USERPROFILE%\.gradle Android Studio projects %USERPROFILE%\AndroidStudioProjects Android SDK %USERPROFILE%\AppData\Local\Android\SDK Android Studio

Android Development which folders to exclude for windows defender?

不羁岁月 提交于 2020-12-29 09:04:49
问题 I excluded the follwing folders in windows defender, but the "Antimalware Service executable" is still using a lot of cpu. C:\Program Files\Android\Android Studio C:\Users\ME\.android C:\Users\ME\MyAndroidProjects C:\Users\ME\AppData\local\Android Which folder/file did I forget? 回答1: This is now described in official documentation: Gradle cache %USERPROFILE%\.gradle Android Studio projects %USERPROFILE%\AndroidStudioProjects Android SDK %USERPROFILE%\AppData\Local\Android\SDK Android Studio

How can i find where a method or a variable is used in Android Studio (shortcut)

给你一囗甜甜゛ 提交于 2020-12-29 08:48:24
问题 I know how to find the source by using ctrl + left click on a method, for example, but what if I want to find where this method is used? I'm using Windows 7. Let's suppose I have the following method: class A { public int sum(int a, int b) { return a+b; } } and I am using this method in class B { ... a.sum(c, d); ... } and I want to find where I used sum while I was in class A . PS: I'm new to Android studio (started using it about a month ago). 回答1: In Android Studio, highlight the method

Flutter Doctor found issue Android_Home

心不动则不痛 提交于 2020-12-29 04:33:40
问题 I am trying to setup Flutter in windows 10. I have: Android Studio installed Visual Studio Code When I run "andoid doctor" in command prompt is shows no errors: But When I try to configure VSCode Editer with steps given in https://flutter.io/get-started/editor/ It Throws error as show below: I tried after setting environment variable as: ANDROID_HOME = F:\Program Files\Android Even after setting the above I get the same error. 回答1: My device was not getting detected by VS Code so , when i

Flutter Doctor found issue Android_Home

ε祈祈猫儿з 提交于 2020-12-29 04:25:06
问题 I am trying to setup Flutter in windows 10. I have: Android Studio installed Visual Studio Code When I run "andoid doctor" in command prompt is shows no errors: But When I try to configure VSCode Editer with steps given in https://flutter.io/get-started/editor/ It Throws error as show below: I tried after setting environment variable as: ANDROID_HOME = F:\Program Files\Android Even after setting the above I get the same error. 回答1: My device was not getting detected by VS Code so , when i

Android Studio 4.1.1- MacOS BigSur - Freezing Problem in FullScreen

爷,独闯天下 提交于 2020-12-29 03:51:25
问题 I am using the latest version of Android Studio (4.1.1). After updating the Mac operating system, Android Studio started encountering strange errors. The most annoying problem I have ever had. When I want to open a new github branch, the window appears as below and freezes. This is what it should normally look like. Of course, this is the only window problem I've noticed. The most important problem here is that the screen freezes and no action can be taken. If people who have problems or have

React Native | Failed to install the app. Please accept all necessary SDK licenses using SDK Manager

允我心安 提交于 2020-12-29 02:51:16
问题 I was trying to start running my react native project. But I'm getting this error while running the react-native run-android command. I tried a bunch of solutions that I found online but neither of them worked. info Starting JS server... info Installing the app... > Configure project :app Checking the license for package Android SDK Build-Tools 28.0.3 in /home/dipanshuchaubey/Android/Sdk/licenses Warning: License for package Android SDK Build-Tools 28.0.3 not accepted. Checking the license

How to terminate Database Inspector in Android Studio

蓝咒 提交于 2020-12-28 13:46:51
问题 I am using Database Inspector in Android Studio 4.1 Canary 10 (Build #AI-201.7223.91.41.6507185) and as this is a new feature, I am encountering many bugs. And there are a lot of event log popups as follows: Database Inspector: Error reading Sqlite database: Unable to perform an operation on database (id=8). The database may have already been closed. And it keeps on crashing my application right after app launch. So my question is how do I detach database inspector from my process? Once I

“noinspection” keyword list in Android Studio

跟風遠走 提交于 2020-12-27 17:20:14
问题 In Android Studio I sometimes use this kind of comment to disable an inspection warning on a specific line of code that I already handled, for example: if(Build.VERSION.SDK_INT < Build.VERSION_CODES.JELLY_BEAN) { //noinspection deprecation textView.setBackgroundDrawable(ContextCompat.getDrawable(mContext, R.drawable.calendar_item_separator)); } else { textView.setBackground(ContextCompat.getDrawable(mContext, R.drawable.calendar_item_separator)); } In this example I used the keyword