成都微网站开发,网站建设字图,国家工商核名查询入口,网站设计的难点Android异常和工具使用笔记 1、r文件找不到去你的工程目录下#xff0c;手动的把gen删掉#xff0c;然后去project中刷新一下#xff0c;在编译看看。以前遇到过类似的问题#xff0c;实在不行就把你的eclispe,adt升级到最新的版本吧 抓住那么一点点线索#xff0c;就要去…Android异常和工具使用笔记 1、r文件找不到去你的工程目录下手动的把gen删掉然后去project中刷新一下在编译看看。以前遇到过类似的问题实在不行就把你的eclispe,adt升级到最新的版本吧 抓住那么一点点线索就要去深入探索。 2、Android Studio寻找错误日志的关键部分比如红色那一堆并不是什么错误 当引入的所有包超过了65536个方法将会引发这个奇葩的异常AGPBI: {kind:simple,text:com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536,sources:[{}]}解决的方案http://stackoverflow.com/questions/30641656/build-failure-on-android-studiohttp://www.cnblogs.com/yeahgis/p/4660873.html 3、如果报错一个组件没有引用那估计是因为某些包里面用到了 原来是com.google.android.gms:play-services:8.4.0用到了appcompat-v7真是一个大坑啊 Error:(2) Error retrieving parent for item: No resource found that matches the given name android:TextAppearance.Material.Widget.Button.Inverse. Error:A problem occurred configuring project :xxxxx. Could not resolve all dependencies for configuration :xxxxx:_debugCompile. Could not find com.android.support:appcompat-v7:23.0.0. Searched in the following locations: https://jcenter.bintray.com/com/android/support/appcompat-v7/23.0.0/appcompat-v7-23.0.0.pom https://jcenter.bintray.com/com/android/support/appcompat-v7/23.0.0/appcompat-v7-23.0.0.aar file:/D:/xxxxxx/Android/sdk/extras/google/m2repository/com/android/support/appcompat-v7/23.0.0/appcompat-v7-23.0.0.aar Required by: sdk:mpaylib:unspecified com.google.android.gms:play-services:8.4.0 com.google.android.gms:play-services-cast:8.4.0 com.android.support:mediarouter-v7:23.0.0 4、需要ndk来编译c的文件 D:\xxxxxxx\build.gradle ndk { moduleName com_xxxxx } Error:(11, 1) A problem occurred evaluating project :xxxxxx. Error: NDK integration is deprecated in the current plugin. Consider trying the new experimental plugin. For details, see http://tools.android.com/tech-docs/new-build-system/gradle-experimental. Set android.useDeprecatedNdktrue in gradle.properties to continue using the current NDK integration. Error:Execution failed for task :codeScanner:compileDebugNdk. NDK not configured.Download the NDK from http://developer.android.com/tools/sdk/ndk/.Then add ndk.dirpath/to/ndk in local.properties.(On Windows, make sure you escape backslashes, e.g. C:\\ndk rather than C:\ndk) 下载ndkhttp://developer.android.com/ndk/downloads/index.html#download 5、应用版本号太低了安装错误无法覆盖原来的installation error: install_failed_version_downgrade 6、两个一样名字的jar包但是md5值不一样造成冲突the type android.support.v4.app.fragment cannot be resolved. it is indirectly referenced from required .class files看错误日志就清楚了 7、android的项目可以导出只包含jar包和资源的android项目jar包不能包含资源只是一个类库 8、导入的方法太多[2014-11-26 16:13:03 - Dex Loader] Unable to execute dex: method ID not in [0, 0xffff]: 65536[2014-11-26 16:13:03 - TM_client] Conversion to Dalvik format failed: Unable to execute dex: method ID not in [0, 0xffff]: 65536 9、Eclipse的开发环境如果要把项目编译为library要勾选is library才能让其他的项目工程引用中文乱码改成utf8编码显示空格换行符号eclipse-window-general-editers-text editors-show whitesspace characters 10、这个问题好像是文件编码的问题Project has no project.properties file! Edit the project properties to set one. 删掉项目工程再重新加入一次转载于:https://www.cnblogs.com/xbx2015/p/5316037.html