Android Studio若干问题

1.can‘t change emulated performance of AVD in Android Studio

solution:Actually, this problem seems to be limited to devices with Play Store available, so Nexus 5X and Nexus 5 images will be forced to use Automatic Graphics, but all other devices allow you to choose either Automatic, Hardware or Software graphics.

2.the android gradle plugin version 3.0.0-alpha1 is too old

While building a default project (black template) on Android Studio 3.0 Canary 1, I got the below error.

The android gradle plugin version 3.0.0-alpha1 is too old, please update to the latest version. To override this check from the command line please set the 
ANDROID_DAILY_OVERRIDE environment variable to "d27b293f4c7c48dfe922ba160164f3fa511cb3b9" 
Upgrade plugin to version 3.0.0-alpha1 and sync project Open File
solution:

Your code may be containing an outdated gradle plugin version (may be alpha1, or something like that) in your project build.gradle file. Update it to the latest alpha4 plugin like below:

dependencies {
    classpath 'com.android.tools.build:gradle:3.0.0-alpha4'
}

3. Emulaor in Android Studio does't start

I think it's a problem with the SDK reference in Project Structure, but when I click run and I choose Launch Emulator nothing appears.

solution:

For emulator crashing seconds after launch in Android Studio 2.3.1 or later: Open Android Virtual Device Manager, select your AVD, select "Edit this AVD", in the new window (Virtual Device Configuration), goto Emulated Performance > Graphics and select the "Software (GLS)" option. This problem might be caused by: 1) Outdated graphics card drivers. 2) Older graphics cards, not properly supported by the generic Windows 8 (or newer) drivers.


4. Android Studio 3.0 & Ubuntu 16.04 emulator donot sart

Message:waiting emulator come on line.

solution:

sudo apt-get install lib64stdc++6:i386

sudo apt-get install mesa-utils

(look for the path of the sdk)

cd YOURPATH/Android/Sdk/emulator/lib64

mv libstdc++/ libstdc++.bak

ln -s /usr/lib64/libstdc++.so.6  libstdc++

Finally, run your application again using emulator.

5.

你可能感兴趣的:(Android)