Android Studio打印机无法正常使用用。

20被浏览2,452分享邀请回答47 条评论分享收藏感谢收起0添加评论分享收藏感谢收起AMD 的处理器居然没法使用 Android Studio 的模拟器
20:42:27 +08:00 · 10699 次点击
首先。。刚才不小心一下回车居然把敲了一半的标题发出去了- -V2能不能弄个可选项的发送确认。。
另外。。好坑啊。。。
11 回复 &| &直到
12:11:57 +08:00
& & 22:44:47 +08:00 via iPhone
& & 23:08:49 +08:00
Android SDK 自带的模拟器,如果使用 x86 镜像,且要使用虚拟化技术加速运行的话,确实无法使用 AMD 的处理器,因为它需要额外装一个叫 Intel HAXM 软件,这个软件只支持英特尔的处理器。
& & 23:16:39 +08:00
Windows 不支持,用 linux 支持用 AMD 的 CPU 启动 Android 模拟器, windows 只能用 intel 的处理器
& & 23:20:58 +08:00 via iPhone
@ 那肯定的,因为你用了 x86 的镜像而且还要用 VT x 指令集。难道用 arm 镜像就开发不了么,楼主是想专门开发 atom 处理器的安卓应用咯?
& & 00:10:53 +08:00
@ troywinter 说的应该才是正确答案
& & 01:29:48 +08:00
@ 我之前 AMD 的 CPU 用模拟器没有任何问题啊,除了没办法用虚拟化加速慢点而已,不过好久没用过了,还是最近改了什么?
& & 08:08:44 +08:00
AMD Virtualization (AMD-V, SVM) extensions (only supported for Linux)
& & 08:48:27 +08:00 via iPhone
@ 饿,我就是在 win 上开发安卓的,也是不支持 haxm
& & 09:00:58 +08:00
模拟器 分为 arm
& & 09:42:59 +08:00
Intel HAXM 只是个加速插件啊。。。
& & 12:11:57 +08:00
@ ok ,等下在 Linux 下试试。
& · & 1359 人在线 & 最高记录 3541 & · &
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.0 · 51ms · UTC 16:37 · PVG 00:37 · LAX 08:37 · JFK 11:37? Do have faith in what you're doing.他的最新文章
他的热门文章
您举报文章:
举报原因:
原文地址:
原因补充:
(最多只允许输入30个字)Android Studio 提示无法正常启动,还请指教,不胜感激!_百度知道
Android Studio 提示无法正常启动,还请指教,不胜感激!
java已安装成功.bat可以启动。求解,非常感谢在Android官网下载了Android Studio免安装版,但是双击 studio64.exe或studio,eclipse可以正常运行.exe都提示下图;但是运行studio
我有更好的答案
ol>查看我的电脑-属性,启动studio64.exe如果还不行.org/index,android studio3。卸载重装android studio如果还不行重启电脑如果还不行,尝试查看电脑是否缺失动态库等dll文件android studio 下载地址需要注意的是,看看的电脑是几位的如果是32位的双击启动studio.exe,如果是 64位的双击
采纳率:77%
来自团队:
卸载了在安装呗,
您看一下,百度一下你就知道
已经试过了...没起作用
已经试过了...没起作用
那个我特别想问你电脑多少位的?是64位的么,你把这个卸载安装一下32位的试试
为您推荐:
其他类似问题
换一换
回答问题,赢新手礼包
个人、企业类
违法有害信息,请在下方选择后提交
色情、暴力
我们会通过消息、邮箱等方式尽快将举报结果通知您。Android Studio(JAVA) 编译警告:使用了未经检查或不安全的操作 – 默默的点滴
2018年一月
15161718192021
22232425262728
在编译Android Studio(JAVA)程序时发生了如下的警告:
使用了未经检查或不安全的操作
要了解详细信息,请使用 "-Xlint:unchecked" 重新编译。
如何设置Android Stuido开启 "-Xlint:unchecked"
修改build.gradle
原始的没有修改的 build.gradle 点击展开
apply plugin: 'com.android.application'
compileSdkVersion 23
buildToolsVersion "23.0.1"
defaultConfig {
applicationId "com.a.b.c"
minSdkVersion 15
targetSdkVersion 23
versionCode 1
versionName "1.0"
buildTypes {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
minifyEnabled false
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.0.1'
compile 'com.android.support:design:23.0.1'
12345678910111213141516171819202122232425262728293031
apply plugin: 'com.android.application'&android {&&&&compileSdkVersion 23&&&&buildToolsVersion "23.0.1"&&&&&defaultConfig {&&&&&&&&applicationId "com.a.b.c"&&&&&&&&minSdkVersion 15&&&&&&&&targetSdkVersion 23&&&&&&&&versionCode 1&&&&&&&&versionName "1.0"&&&&}&&&&&buildTypes {&&&&&&&&release {&&&&&&&&&&&&minifyEnabled false&&&&&&&&&&&&proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'&&&&&&&&}&&&&&&&&debug {&&&&&&&&&&&&minifyEnabled false&&&&&&&&}&&&&}}&dependencies {&&&&compile fileTree(dir: 'libs', include: ['*.jar'])&&&&testCompile 'junit:junit:4.12'&&&&compile 'com.android.support:appcompat-v7:23.0.1'&&&&compile 'com.android.support:design:23.0.1'}
tasks.withType(JavaCompile) {
options.compilerArgs && "-Xlint:unchecked"
tasks.withType(JavaCompile) {&& options.compilerArgs && "-Xlint:unchecked"}
修改后的如下:
修改后增加了 -Xlint:unchecked 的build.gradle 点击展开
apply plugin: 'com.android.application'
compileSdkVersion 23
buildToolsVersion "23.0.1"
defaultConfig {
applicationId "com.a.b.c"
minSdkVersion 15
targetSdkVersion 23
versionCode 1
versionName "1.0"
buildTypes {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
minifyEnabled false
tasks.withType(JavaCompile) {
options.compilerArgs && "-Xlint:unchecked"
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.0.1'
compile 'com.android.support:design:23.0.1'
1234567891011121314151617181920212223242526272829303132333435
apply plugin: 'com.android.application'&android {&&&&compileSdkVersion 23&&&&buildToolsVersion "23.0.1"&&&&&defaultConfig {&&&&&&&&applicationId "com.a.b.c"&&&&&&&&minSdkVersion 15&&&&&&&&targetSdkVersion 23&&&&&&&&versionCode 1&&&&&&&&versionName "1.0"&&&&}&&&&&buildTypes {&&&&&&&&release {&&&&&&&&&&&&minifyEnabled false&&&&&&&&&&&&proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'&&&&&&&&}&&&&&&&&debug {&&&&&&&&&&&&minifyEnabled false&&&&&&&&}&&&&}&&&&&tasks.withType(JavaCompile) {&&&&&& options.compilerArgs && "-Xlint:unchecked"&&&&}}&dependencies {&&&&compile fileTree(dir: 'libs', include: ['*.jar'])&&&&testCompile 'junit:junit:4.12'&&&&compile 'com.android.support:appcompat-v7:23.0.1'&&&&compile 'com.android.support:design:23.0.1'}
警告信息的处理例子
包含-Xlint:unchecked警告的代码
包含-Xlint:unchecked警告的代码
final LinkedHashMap&WeakReference&Object&,WeakReference&Object&& aWeakArray = new LinkedHashMap&&();
for (Iterator iter = aWeakArray.entrySet().iterator(); iter.hasNext(); ) {
LinkedHashMap.Entry element = (LinkedHashMap.Entry)iter.next();
WeakReference&Object& aWeakObj = (WeakReference&Object&)element.getKey();
WeakReference&Object& aWeakTag = (WeakReference&Object&)element.getValue();
final LinkedHashMap&WeakReference&Object&,WeakReference&Object&& aWeakArray = new LinkedHashMap&&();for (Iterator iter = aWeakArray.entrySet().iterator(); iter.hasNext(); ) { LinkedHashMap.Entry element = (LinkedHashMap.Entry)iter.next(); WeakReference&Object& aWeakObj = (WeakReference&Object&)element.getKey(); WeakReference&Object& aWeakTag = (WeakReference&Object&)element.getValue();}
消除警告后的代码如下:
消除警告后的代码
final LinkedHashMap&WeakReference&Object&,WeakReference&Object&& aWeakArray = new LinkedHashMap&&();
for (Iterator&LinkedHashMap.Entry&WeakReference&Object&,WeakReference&Object&& & iter = aWeakArray.entrySet().iterator(); iter.hasNext(); ) {
LinkedHashMap.Entry&WeakReference&Object&,WeakReference&Object&& element = iter.next();
WeakReference&Object& aWeakObj = element.getKey();
WeakReference&Object& aWeakTag = element.getValue();
final LinkedHashMap&WeakReference&Object&,WeakReference&Object&& aWeakArray = new LinkedHashMap&&();for (Iterator&LinkedHashMap.Entry&WeakReference&Object&,WeakReference&Object&& & iter = aWeakArray.entrySet().iterator(); iter.hasNext(); ) { LinkedHashMap.Entry&WeakReference&Object&,WeakReference&Object&& element = iter.next(); WeakReference&Object& aWeakObj = element.getKey(); WeakReference&Object& aWeakTag = element.getValue();}
同样的方法适用于"-Xlint:deprecation"。

我要回帖

更多关于 鼠标无法正常使用 的文章

 

随机推荐