android-studio

How to change Indentation Line Color In Android Studio 4.0?

痞子三分冷 提交于 2020-07-09 11:47:59
问题 I don't know what the name of this setting is. It's the (grayish) line that appears when you unfold a method, if, for, etc.. statement (see attached image). I want to change the color but can't find the option in the Android Studio 4.0 settings menu. Does anyone know what's it called and how to change it's color? thanks 回答1: Things have changed in android studio 4.0 In order to change the color of that indentation line do this Go to File -> Settings -> Editor -> Color Scheme -> General And

why so many connection to same Emulator port with ESTABLISHED and TIME_WAIT

徘徊边缘 提交于 2020-07-09 06:38:10
问题 I am struggling to find some way to deal with two permanent errors in my project when using Android Studio Emulator: emulator: ERROR: AdbHostServer.cpp:102: Unable to connect to adb daemon on port: 5037 Emulator: socketTcpLoopbackClientFor: error: fd 56668 above FD_SETSIZE (32768) No matter which Android/API version I use these two erros don't disapear. I find a bit weird the number of Emulator Connections to such port. Maybe it is desinged to work that way or maybe I messed upp some thing

Android Studio - unable to select data in Android network profiler

家住魔仙堡 提交于 2020-07-09 06:14:05
问题 I used to be able to select data from the graph of the Android Network Profiler but it stop working for some reason. Now when I try to click and drag to select data, nothing, the cursor doesn't change and I can't select anything. Is this a bug or am I doing something wrong? https://i.stack.imgur.com/Ue3dY.png 回答1: The Advanced Profiler was disabled. Issue resolved. 来源: https://stackoverflow.com/questions/51235877/android-studio-unable-to-select-data-in-android-network-profiler

Android Studio - unable to select data in Android network profiler

心已入冬 提交于 2020-07-09 06:12:52
问题 I used to be able to select data from the graph of the Android Network Profiler but it stop working for some reason. Now when I try to click and drag to select data, nothing, the cursor doesn't change and I can't select anything. Is this a bug or am I doing something wrong? https://i.stack.imgur.com/Ue3dY.png 回答1: The Advanced Profiler was disabled. Issue resolved. 来源: https://stackoverflow.com/questions/51235877/android-studio-unable-to-select-data-in-android-network-profiler

Cannot resolve method “getMapAsync”

▼魔方 西西 提交于 2020-07-08 19:48:48
问题 Excuse me for any grammatical errors. I followed a tutorial to view the google map in a fragment, but something has gone wrong. this is my file .java that is hooked with the fragment: public class MapFragment extends Fragment implements OnMapReadyCallback{ @Nullable @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // Inflate the layout for this fragment return inflater.inflate(R.layout.fragment_map, container, false); } @Override

AmazonSQSClientBuilder.defaultClient() java.lang.NoSuchFieldError: No static field INSTANCE of type Lorg/apache/http/conn/ssl/AllowAllHostnameVerifier

馋奶兔 提交于 2020-07-08 19:32:45
问题 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.msgqueue3/com.example.msgqueue3.MainActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'com.amazonaws.services.sqs.model.CreateQueueResult com.amazonaws.services.sqs.AmazonSQS.createQueue(com.amazonaws.services.sqs.model.CreateQueueRequest)' on a null object reference AWS SQS connection problem 回答1: I suggest to use the AWS Java SDK V2 . It will allow you to use an alternate HTTP runtime,

AmazonSQSClientBuilder.defaultClient() java.lang.NoSuchFieldError: No static field INSTANCE of type Lorg/apache/http/conn/ssl/AllowAllHostnameVerifier

血红的双手。 提交于 2020-07-08 19:30:47
问题 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.msgqueue3/com.example.msgqueue3.MainActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'com.amazonaws.services.sqs.model.CreateQueueResult com.amazonaws.services.sqs.AmazonSQS.createQueue(com.amazonaws.services.sqs.model.CreateQueueRequest)' on a null object reference AWS SQS connection problem 回答1: I suggest to use the AWS Java SDK V2 . It will allow you to use an alternate HTTP runtime,

Verbose build logs from Android Studio

风流意气都作罢 提交于 2020-07-08 12:58:08
问题 How do I get a verbose log (including the command-line arguments to compiler and linker) when building with Android Studio? I have just transitioned from Ant / Android.mk builds to Android-Studio builds. With the old system, I was able to see how the compiler was evoked by doing: $ ndk-build V=1 What would be the equivalent setting in Android Studio to accomplish this? I have a suspicion that my project is building against the wrong GLES version (gles2 instead of gles3) and want to make sure

Verbose build logs from Android Studio

限于喜欢 提交于 2020-07-08 12:57:50
问题 How do I get a verbose log (including the command-line arguments to compiler and linker) when building with Android Studio? I have just transitioned from Ant / Android.mk builds to Android-Studio builds. With the old system, I was able to see how the compiler was evoked by doing: $ ndk-build V=1 What would be the equivalent setting in Android Studio to accomplish this? I have a suspicion that my project is building against the wrong GLES version (gles2 instead of gles3) and want to make sure

Android Studio 3.3 corrupted all the project files in new bug

限于喜欢 提交于 2020-07-08 12:51:52
问题 After updating Android Studio to the latest 3.3 version everything was going fine until suddenly gradle build failed, then indexing failed because can't read the idea files. I opened the .imi file and surprise! the contents have been replaced with some Apache2 license! Not just that every single xml file in the project is now an Apache license with length as every file also every Java/SQL file is now Chinese gibberish with a UTF-8 error on top which is also unrelated. Anyway on the system