- 博客(24)
- 收藏
- 关注
原创 emulator: ERROR: x86 emulation currently requires hardware acceleration 启动模拟器异常
1.安装错误:需要操作一下步骤:BOIS–>Security–>Virtualization ,disable->enable 保存退出重启 2.在sdk\extras\intel\Hardware_Accelerated_Execution_Manager文件夹下双击安装一下intelhaxm-android.exe,如图所示:3.到studio-> To...
2019-02-26 17:47:51
328
原创 java.io.IOException: Could not delete path。。。。。。
android studio编译时提示:java.io.IOException: Could not delete path 'E:\AndroidWorkSpace\。。。。\rtu\build\generated\source\r\debug\android\support'.原因:上次编译的缓存没清空导致,可直接手动clean,或者进入android目录下:gradle clean...
2018-12-06 09:31:54
1896
原创 Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
Error:FAILURE: Build failed with an exception.* What went wrong:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.> java.lang.RuntimeException: com.android.b...
2018-11-01 13:15:42
1263
转载 java.lang.NoSuchMethodError: No static method combineMeasuredStates(II)I in class Landroid/support/
android studio编译报错: java.lang.NoSuchMethodError: No static method combineMeasuredStates(II)I in class Landroid/support/v7/widget/ViewUtils; or its super classes (declaration of 'android.support.v7.w...
2018-10-29 15:46:50
2843
原创 Android Studio: 编码UTF-8的不可映射字符
Android Studio 运行gradle命令时报错: 编码UTF-8的不可映射字符解决方法:在项目的module下的build.gradle中添加如下配置:tasks.withType(JavaCompile) { options.encoding = "UTF-8"}...
2018-10-29 14:08:52
3312
原创 Android Studio:Error:java.util.concurrent.ExecutionException: com.android.tools.aapt2...
studio导入项目提示如下:解决方式:只需在工程的gradle.properties文件中添加以下命令:android.enableAapt2=false
2018-09-02 18:44:01
326
原创 gradle project sync failed. Basic functionality (e.g. editing, debugging) will not work properly
问题:gradle project sync failed. Basic functionality (e.g. editing, debugging) will not work properly 解决方法:找到 gradle\wrapper\gradle-wrapper.properties 文件,添加如下一段话如果未成功,自己手动下载这个版本的Gradle,无需解压直接拷贝到C:...
2018-08-16 13:27:24
6302
1
原创 Error:All flavors must now belong to a named flavor dimension. Learn more at https://d.android.com
studio更新最版本之后,提示:Error:All flavors must now belong to a named flavor dimension. Learn more at https://d.android.com解决方案:在Module下build.gradle的android{}里添加:flavorDimensions "color"productFlavors...
2018-08-16 10:07:31
171
原创 Android Error:Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease'. >
android Studio 在编译时候突然报出以下错误:Error:Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease'. >原因是proguard-rules.pro文件启用时报错,解决方法:在proguard-rules.pro里面加入图片中圈起来的部分即可!...
2018-07-06 15:42:01
371
原创 调用地图提示错误:java.lang.UnsatisfiedLinkError: No implementation found for int com.baidu.platform.comjni.t
测试地图定位打印日志:java.lang.UnsatisfiedLinkError: No implementation found for long com.baidu.platform.comjni.map.commonmemcache.JNICommonMemCache.Create() (tried Java_com_baidu_platform_comjni_map_common
2017-08-09 16:30:11
3018
原创 android studio fastJson解析数据提示java.lang.NoClassDefFoundError
问题:android studio fastJson解析数据时候java.lang.NoClassDefFoundError: Failed resolution of: Ljava/awt/Point。。。。。解决方案:1.打开app-----》open module setting 如下图,查看jar包是否已添加成功,如若没有,点击+号添加,也可以手动在gradle中添加compil
2017-07-28 14:56:32
1389
原创 android studio编译提示it is possible that this issue is resolved by uninstalling an....
提示:It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing.WARNING: Uninstalling will remove the application data!Do yo
2017-07-27 14:31:58
2335
原创 gradle打包:Keystore file xxx not found for signing config
问题:Keystore file C:\Users\xxxx\.android\androidstudio.jks not found for signing解决方案://添加签名文件配置signingConfigs { release { storeFile file('androidstudio.jks') storePassword
2017-07-25 10:12:17
5720
原创 Error:Execution failed for task ':app:compileReleaseJavaWithJavac'
问题: Failed to create MD5 hash for file 'D:\AndroidStudioProjects\CarAndShi\app\libs\android-support-v7-appcompat.jar'.解决方案:在项目app中的build.gradle里,注释掉或者删除jar包
2017-07-24 22:28:25
1772
原创 Conversion to Dalvik format failed: Unable to execute dex
问题:Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lcom/alipay/a/a解决方案:存在多余jar包
2017-07-22 23:08:40
191
原创 Could not get BatchedBridge, make sure your bundle is packaged correctly
问题:Could not get BatchedBridge, make sure your bundle is packaged correctly解决方案:cd 进入项目根目录执行如下安装命令:react-native bundle --platform android --dev false --entry-file index.android.js --bundle-output
2017-07-22 23:07:00
410
原创 Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variab
启动Android Studio时出现:Error:SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.解决方案:设置ANDROID_HOME环境变量为你安装的sdk路径,重启Android S
2017-07-22 23:05:07
1502
原创 Error:NDK not configured. Download it with SDK manager
android studio问题:Error:NDK not configured. Download it with SDK manager.解决方案:解决方法:①在你的local.properties文件中添加你的ndk路径sdk.dir=D\:\\YAOWork\\adt-bundle-windows-x86_64-20131030\\sdkndk.dir=D\:
2017-07-22 23:03:22
9374
原创 Unsupported major.minor version 52.0
遇到问题:1、 java.lang.UnsupportedClassVersionError: com/android/build/gradle/AppPlugin : Unsupported major.minor version 52.0解决方案:class版本不支持,Android Studio2.2必须使用JDK8及以上版本,而且是强制的,把JAVA_HOME指向了JDK8,实
2017-07-22 23:01:52
270
原创 android studio 提示com.android.build.api.transform.TransformException
问题:Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'.> com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException: Dup
2017-07-22 22:52:53
1048
原创 Android Studio 提示PSI and index do not match错误
解决方案:File->Invalidate Caches/Restart->Invalidate and Restart
2017-07-20 09:47:50
589
原创 android studio提示Error:Unable to tunnel through proxy. Proxy returns "HTTP/1.1 400 Bad Reques
解决方法:1.studio里面->setting->Build,Execution,Deployment里面的Gradle->配置此项目的gradle文件路径为studio应用所使用的版本路径(如果还报错,查看gradle版本是否与studio版本一致)
2017-07-18 22:30:45
591
原创 svn提交项目 Error: is scheduled for addition, but is missing
原因:此时你要提交的文件已经被删除解决方法:右键--Revert,选中那个文件。这样就告诉SVN把这个文件退回到之前的状态 "unversioned",也就是不对这个文件做任何修改
2017-07-18 18:00:05
1810
转载 android 6.0(api 23) SDK,没有org.apache.http.包
Android Studion解决办法:android { useLibrary 'org.apache.http.legacy'}Eclipse 解决办法libs中加入org.apache.http.legacy.jar上面的jar包在:**\android-sdk\platforms\android-23\optional下下载地址org.apache.htt
2017-07-17 16:36:24
270
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人