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:i386sudo apt-get install mesa-utils(look for the path of the sdk)cd YOURPATH/Android/Sdk/emulator/lib64mv libstdc++/ libstdc++.bakln -s /usr/lib64/libstdc++.so.6 libstdc++Finally, run your application again using emulator.
5.
更多相关文章
- 代码中设置drawableleft
- android 3.0 隐藏 系统标题栏
- Android开发中activity切换动画的实现
- Android(安卓)学习 笔记_05. 文件下载
- Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
- 技术博客汇总
- android 2.3 wifi (一)
- AndRoid Notification的清空和修改
- Android中的Chronometer