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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值