
异常解决
文章平均质量分 55
WongWoo1991
不一样的程序猿
展开
-
android studio编译异常Error:Failed to resolve:
在android studio中编译aar出现异常:其中ACDDCore-debug为aar包名。解决方案,在build.gradle添加:repositories { flatDir { dirs 'libs' }}这意味着系统将在lib目录下搜索依赖。原创 2016-10-01 15:48:55 · 1808 阅读 · 0 评论 -
android异常compileDebugJavaWithJavac
使用DataBinding变异异常:Error:Execution failed for task ':main:compileDebugJavaWithJavac'.> java.lang.RuntimeException: failure, see logs for details.Exception while handling step android.databinding.an原创 2017-06-05 11:41:57 · 7835 阅读 · 0 评论 -
AndroidStudio编译错误
1、异常:Error:Execution failed for task ':app:processDebugManifest'.> Manifest merger failed with multiple errors, see logs之前代码是可以正常运行的,突然就不行了,通过SVN对比代码发现问题出在AndroidMenifest.xml文件:如红框所示,微信的回调act原创 2016-10-19 16:15:49 · 1834 阅读 · 0 评论 -
android乱码问题解决
如果服务器是windows平台,而android内核是linux,跨平台的通信必然会导致乱码的问题,解决方案如下:在服务端:// 以GB2312编码方式输出到客户端outputStream.write("服务端输出信息".getBytes("GB2312"));在客户端:// 以服务端的GB2312编码格式接收信息BufferedReader reader = new Buff原创 2015-03-15 11:36:22 · 683 阅读 · 0 评论 -
eclipse启动tomcat错误
错误为:Could not load the Tomcat server configuration at \Servers\Tomcat v7.0 Server at localhost-config. The Servers project is closed.原因:tomcat7在配置到eclipse的时候新建了一个servers工程,servers工程里面是对部署工程的配置和部原创 2015-04-01 09:26:38 · 1094 阅读 · 0 评论 -
Unable to add window错误
错误:04-01 01:20:11.596: D/AndroidRuntime(1548): Shutting down VM04-01 01:20:11.600: W/dalvikvm(1548): threadid=1: thread exiting with uncaught exception (group=0xa4d0bb20)04-01 01:20:11.600: E/Andr原创 2015-04-01 14:20:42 · 880 阅读 · 0 评论 -
引入工程出现The type android.support.v4.view.ViewPager cannot be resolved. 错误
引入有多个依赖工程的时候,出现“The type android.support.v4.view.ViewPager cannot be resolved. It is indirectly referenced from required .class files”错误,右击工程->build path -> configure build path.. -> libraries -> add原创 2015-04-03 13:37:03 · 2199 阅读 · 0 评论 -
安卓The library '*.jar' contains native libraries that will not run on the device.
编辑安卓项目时出现错误:[2015-10-08 14:05:37 - uc] The library 'UCGameSDK-3.5.3.1.jar' contains native libraries that will not run on the device.[2015-10-08 14:05:37 - uc] The following libraries were found:原创 2015-10-08 14:17:48 · 1092 阅读 · 0 评论 -
异常A WebView method was called on thread 'JavaBridge'. All WebView methods must be called on the same
在创建webview的另外一个地方调用webview加载网页,出现异常:11-10 13:40:49.793: W/WebView(3684): java.lang.Throwable: A WebView method was called on thread 'JavaBridge'. All WebView methods must be called on the same threa原创 2015-11-10 15:25:21 · 9430 阅读 · 3 评论 -
换IP后MySQL报错:not allowed to connect to this MySQL server
原因:更换ip后,服务器没有授权给这个ip,是不能连接的。解决方案:运行命令:mysql>GRANT ALL PRIVILEGES ON *.* TO 'admin'@'10.3.11.26' IDENTIFIED BY 'admin' WITH GRANT OPTION;解释:允许用户admin从ip为10.3.11.26的主机连接到mysql服务器,并使用admin作为密码原创 2015-11-12 10:15:15 · 1016 阅读 · 0 评论 -
Fragment之java.lang.IllegalArgumentException: No view found for id异常
描述:FragmentA中打开FragmentB,打开方式:getFragmentManager().beginTransaction().add(R.id.fragment_container, fragmentB, FragmentB.TAG).commit();其中fragment_container是FragmentA布局中一个容器,用来存放FragmentB。异常信息原创 2016-05-12 10:34:03 · 8214 阅读 · 1 评论 -
异常com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536
使用CoordinatorLayout时,要引用:compile 'com.android.support:design:25.0.1'结果出现异常:Error:Execution failed for task ':main:transformClassesWithDexForDebug'.> com.android.build.api.transform.TransformExcep原创 2017-08-16 14:17:20 · 579 阅读 · 0 评论