android-studio

What is the default Android SDK path used by Android Studio?

与世无争的帅哥 提交于 2020-06-24 11:12:26
问题 When using Android Studio to download the Android SDK, what is the default path where it downloads to? I'm interested in knowing the paths for Linux, Mac, and Windows. 回答1: From searching in the web it seems to be: Linux: ~/Android/Sdk Mac: ~/Library/Android/sdk Windows: %LOCALAPPDATA%\Android\sdk I find it odd to have inconsistent paths and even the lower/upper case for Linux and Mac ("Sdk" vs "sdk"), but it seems to be this way... 回答2: Linux /home/AccountName/Android/Sdk 回答3: Click this

Can Android Studio use the system CMake?

浪尽此生 提交于 2020-06-24 07:17:36
问题 I'm using Android Studio + CMake to build a native library. AS requested installing CMake, even though I already have CMake installed and in my path. Can you tell AS to look for CMake at a certain location, instead of installing another CMake? 回答1: The new Android plugin for gradle 3.0 will support using system CMake, for CMake 3.7+. From that webpage: Download and install CMake 3.7 or higher from the official CMake website. Include the path to the CMake installation in your project's local

Android Studio fails to install update (error : Failed to read or create install properties file.)

大憨熊 提交于 2020-06-24 07:02:46
问题 Screenshot of error I am running [ Android Studio 2.3 Build #AI-162.3764568, built on February 24, 2017 JRE: 1.8.0_112-release-b06 amd64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o] on Ubuntu 16.04. From last few days android studio gives me error on trying to update. I have no idea how to fix this. 回答1: I ran the Android studio as administrator and then it worked as it is a permission issue. 回答2: chmod 777 $ANDROID_HOME -R is not a good solution like @spark mentioned. I solved it by

Why are some views inside the legacy tab in Android Studio 3.1 and what replaces them?

点点圈 提交于 2020-06-24 02:12:19
问题 I've updated my Android Studio to 3.1 stable channel. I've noticed that "All" tabs in palette window are removed and "Legacy" tab is introduced. That tab contains the following: ListView TabHost RelativeLayout GridView I didn't mention the GridLayout because it's a downloadable dependency rather than a View from the Android APIs. Which new Views have replaced the views mentioned above? I know ConstraintLayout replaces RelativeLayout , but what replaces the ListView , the GridView or the

Emulator: emulator: ERROR: AdbHostServer.cpp:102: Unable to connect to adb daemon on port: 5037

China☆狼群 提交于 2020-06-23 08:10:08
问题 I am stuck a whole afternoon trying to run again my small Android/Kotlin application in Android Studio. The message pasted on this question topic suddenly nocked me down. I have done these tentatives: 1 - cold boot (On Virtual Devices screen > Actions > Cold Boot Now) 2 - I deleted my previous Virtual Device and I downloaded a new one (Nexus One) 3 - I followed all steps from other stackoverflow answer 3.1 cd C:\Users\Jimis\AppData\Local\Android\Sdk\platform-tool adb kill-server adb.exe start

Emulator: emulator: ERROR: AdbHostServer.cpp:102: Unable to connect to adb daemon on port: 5037

只谈情不闲聊 提交于 2020-06-23 08:09:46
问题 I am stuck a whole afternoon trying to run again my small Android/Kotlin application in Android Studio. The message pasted on this question topic suddenly nocked me down. I have done these tentatives: 1 - cold boot (On Virtual Devices screen > Actions > Cold Boot Now) 2 - I deleted my previous Virtual Device and I downloaded a new one (Nexus One) 3 - I followed all steps from other stackoverflow answer 3.1 cd C:\Users\Jimis\AppData\Local\Android\Sdk\platform-tool adb kill-server adb.exe start

CustomScope may not reference bindings with different scopes

拥有回忆 提交于 2020-06-23 05:56:27
问题 I am new to dagger, I have defined my application component like this @Singleton @Component(modules = {ApplicationModule.class}) public interface ApplicationComponent { void inject(BaseActivity activity); Context context(); } This is my ApplicationModule @Module public class ApplicationModule { public TipoApplication application; public ApplicationModule(TipoApplication application) { this.application = application; } @Singleton @Provides public Context provideContext(){return application

CustomScope may not reference bindings with different scopes

帅比萌擦擦* 提交于 2020-06-23 05:56:05
问题 I am new to dagger, I have defined my application component like this @Singleton @Component(modules = {ApplicationModule.class}) public interface ApplicationComponent { void inject(BaseActivity activity); Context context(); } This is my ApplicationModule @Module public class ApplicationModule { public TipoApplication application; public ApplicationModule(TipoApplication application) { this.application = application; } @Singleton @Provides public Context provideContext(){return application

Android emulator errors (socketTcpLoopbackClientFor and AdbHostServer.cpp)

雨燕双飞 提交于 2020-06-23 04:30:12
问题 I just installed Android Studio (Windows) and I created a google pixel 3 XL, API 29, no play store installed. When I launch an hello word application, I get these 2 errors: Emulator: socketTcpLoopbackClientFor: error: fd 52252 above FD_SETSIZE (32768) Emulator: emulator: ERROR: AdbHostServer.cpp:102: Unable to connect to adb daemon on port: 5037 For what concerning the first error, I tried this Problem with the emulator since the update but it didn't work. 回答1: If you're using an AMD

DatePickerDialog cannote resolve symbol

允我心安 提交于 2020-06-17 15:53:09
问题 All written DatePickerDialog report an error (cannot resolve symbol), but the program is compiled correctly, no error in the LogCat. Who can explain why? 回答1: You should try the Invalidate Caches / Restart option on the File menu. A stale cache is the cause of many unresolved reference problems that are actually there. 来源: https://stackoverflow.com/questions/61661162/datepickerdialog-cannote-resolve-symbol