android-studio

Which Java JDK should I install for the use of Android Studio

眉间皱痕 提交于 2020-08-25 01:40:25
问题 I want to install Android Studio and I saw that it is recommended to also install the Java JDK. The thing that I don't understand is that a lot of people are recommending the Java SE Development Kit 8 but the latest one is 13. Why would I use 8 instead of 13? Can anyone tell me the exact version of JDK that should be used for Android Studio? Thanks in advance. 回答1: The official doc says: Set the JDK version A copy of the latest OpenJDK comes bundled with Android Studio 2.2 and higher, and

AOSP x86_64 Emulator not visible in Android Studio

こ雲淡風輕ζ 提交于 2020-08-24 08:19:31
问题 I am using AOSP emulator for testing my code. I downloaded the android10_release source code of AOSP in my pc. Then used the following commands source build/envsetup.sh set_stuff_for_environment lunch aosp_x86_64-eng make -j6 emulator now after running these commands I am successfully able to run emulator in my pc OS of my pc is Ubuntu 18.04 I also installed many libraries for working with AOSP like jdk-8, python, curl, repo, git, and other stuff as per described in AOSP website I am abe to

AOSP x86_64 Emulator not visible in Android Studio

狂风中的少年 提交于 2020-08-24 08:18:27
问题 I am using AOSP emulator for testing my code. I downloaded the android10_release source code of AOSP in my pc. Then used the following commands source build/envsetup.sh set_stuff_for_environment lunch aosp_x86_64-eng make -j6 emulator now after running these commands I am successfully able to run emulator in my pc OS of my pc is Ubuntu 18.04 I also installed many libraries for working with AOSP like jdk-8, python, curl, repo, git, and other stuff as per described in AOSP website I am abe to

VSCode keyboard shortcuts for Android Studio

好久不见. 提交于 2020-08-24 06:33:31
问题 Is there a way to add VSCode as an option under Android Studio's keymap settings? Under File -> Settings... -> Keymap There are many other options listed, however none of them are even similar to VSCode 回答1: I was unable to find anybody else who had done this, so I created my own https://github.com/meadowsjared/VSCode-keybindings-for-Android-Studio If you click the GitHub link above, it includes both instructions and you can also download the jar file you'll need (just hit Clone or download )

How to open an existing Flutter Project in Android Studio

前提是你 提交于 2020-08-24 05:33:13
问题 I might sound noob here but I can't see a clear way of opening existing Flutter Project in Android Studio 3.1.2 . I checked this but it didn't work. So I want to know if there is a standard IDE way of doing this? I also can't find any docs clearly mentioning it. Do I need to install a 3rd party plugin? After opening it as an Existing Android Studio Project, I get the following error: The error is solved by running Get Dependencies . Is it a normal behavior? 回答1: Install Flutter plugin for

How to open an existing Flutter Project in Android Studio

淺唱寂寞╮ 提交于 2020-08-24 05:33:11
问题 I might sound noob here but I can't see a clear way of opening existing Flutter Project in Android Studio 3.1.2 . I checked this but it didn't work. So I want to know if there is a standard IDE way of doing this? I also can't find any docs clearly mentioning it. Do I need to install a 3rd party plugin? After opening it as an Existing Android Studio Project, I get the following error: The error is solved by running Get Dependencies . Is it a normal behavior? 回答1: Install Flutter plugin for

How to open an existing Flutter Project in Android Studio

时光总嘲笑我的痴心妄想 提交于 2020-08-24 05:32:08
问题 I might sound noob here but I can't see a clear way of opening existing Flutter Project in Android Studio 3.1.2 . I checked this but it didn't work. So I want to know if there is a standard IDE way of doing this? I also can't find any docs clearly mentioning it. Do I need to install a 3rd party plugin? After opening it as an Existing Android Studio Project, I get the following error: The error is solved by running Get Dependencies . Is it a normal behavior? 回答1: Install Flutter plugin for

AndroidStudio show usage of RAM

允我心安 提交于 2020-08-24 05:29:04
问题 I have seen on other AndroidStudio-pictures, that there is a RAM usage at the right bottom. I tried to setup this statuslist o the bottom. But a rightclick didn`t help me. How can I switch on the RAM usage in AndroidStudio ? 回答1: Setting > Appearance and enable Show memory indicator 回答2: Maybe I misunderstood the question but I need to see the usage of ram in my application. I found the solution here: https://developer.android.com/studio/profile/memory-profiler Click View > Tool Windows >

Could not find com.android.tools.build:aapt2:4.0.0-6051327 [duplicate]

限于喜欢 提交于 2020-08-24 03:35:29
问题 This question already has answers here : Could not find com.android.tools.build:aapt2:3.2.0 (13 answers) Closed 2 months ago . when I run a java file in android studio, this error happens: Could not find com.android.tools.build:aapt2:4.0.0-6051327. Searched in the following locations: - https://jcenter.bintray.com/com/android/tools/build/aapt2/4.0.0-6051327/aapt2-4.0.0-6051327.pom If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM'

How do I customize the navigation drawer in Android Studios?

故事扮演 提交于 2020-08-24 03:30:41
问题 How do I customize the navigation drawer to look like this: I cant find any tutorials to customize the navigation drawer. Can anyone please help? 回答1: You can use MaterialDrawer library that has a very nice API and set a custom view you want for the drawer like this: drawer = new DrawerBuilder() .withActivity(this) .withCustomView(myView) .build(); 回答2: This is the layout (activity layout) : <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas