![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
问题解决
Dreamj1991
这个作者很懒,什么都没留下…
展开
-
Cannot set the value of read-only property 'outputFile' for ApkVariantOutputImpl_Decorated{apkData=M
在做多渠道打包的时候出现了这个错误,在高版本的gradle出现。具体错误为:Cannot set the value of read-only property 'outputFile' for ApkVariantOutputImpl_Decorated{apkData=Main{type=MAIN, fullName=debug, filters=[]}} of type com.a...原创 2020-03-11 10:58:10 · 521 阅读 · 0 评论 -
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException
问题描述:添加一个第三方依赖,编译器就报以下问题。上网百度了一番,原来是因为application大小不够,超了Error:Execution failed for task ':dowedoandroid:transformClassesWithDexForDebug'.> com.android.build.api.transform.TransformException: com.a原创 2017-03-31 13:01:22 · 621 阅读 · 0 评论 -
安卓 webview加载h5界面无响应
问题描述:最近遇到一个问题,h5界面在7.0系统测试机上加载不出来,百度了一番,原来是安卓7.0系统webview的bug。webview在加载https的请求时,证书出现了问题。问题解决: webView.setWebViewClient(new WebViewClient() { // Load opened URL in the appl原创 2017-04-18 15:06:27 · 4566 阅读 · 1 评论 -
android 7.0 使用 webview 访问 https 协议的网址,界面显示空白,其他android版本正常。
X5内核的webview,在7.0上会报证书不信任,解决方法:重写WebViewClient中的onReceivedSslError()方法: @Override public void onReceivedSslError(WebView webView, SslErrorHandler sslErrorHandler, SslError sslError) {原创 2017-02-14 17:12:23 · 4575 阅读 · 1 评论 -
android自定义View时报 error: No resource identifier found for attribute ‘XXX’ in package 'XXX'
问题描述:目录结构:然后在布局上加上xmlns:test="http://schemas.Android.com/apk/res/com.example.myviewdemo.view"结果报error: No resource identifier found for attribute ‘XXX’ in package 'XXX'查看了代原创 2016-05-25 14:36:38 · 661 阅读 · 0 评论 -
The vertically scrolling ScrollView should not contain another vertically scrolling widget (ListView
问题背景今天做个界面需要在整个布局都要滚动的基础上添加一个ListView元素,整个布局滚动当然用ScrollView。但是在ScrollView+ListView的布局画好后,发现整个界面都无法滚动,而且ListView只显示了第一条元素。 查看布局提示:The vertically scrolling ScrollView should not contain another vertic原创 2016-01-31 14:52:52 · 1420 阅读 · 0 评论 -
The method setBackground(Drawable) in the type View is not applicable for the arguments (int)
The method setBackground(Drawable) in the type View is not applicable for the arguments (int)btnLookPwd.setBackground(R.drawable.open_eye);问题解决:btnLookPwd.setBackgroundResource(R.drawable.原创 2016-01-06 17:48:26 · 1568 阅读 · 0 评论 -
java.lang.IllegalStateException: ScrollView can host only one direct child
1. 问题描述:ScrollView作为顶层view时报错,直接导致apk崩溃,详细错误信息如下:12-21 09:12:15.150: D/AndroidRuntime(7726): Shutting down VM12-21 09:12:15.150: W/dalvikvm(7726): threadid=1: thread exiting with uncaught exce原创 2016-01-22 13:59:37 · 1623 阅读 · 0 评论 -
java.lang.IllegalStateException: The content of the adapter has changed but ListView..
错误日志:02-21 14:54:28.928: E/AndroidRuntime(2846): FATAL EXCEPTION: main02-21 14:54:28.928: E/AndroidRuntime(2846): java.lang.IllegalStateException: The content of the adapter has changed but List原创 2016-01-04 19:09:10 · 523 阅读 · 0 评论 -
java.lang.NoClassDefFoundError: android.support.v4.view.ViewConfigurationCompat
我的是引入第三方框架中包含了 android.support.v4jar包,而我新建的项目里也包含了一个 android.support.v4 jar包解决方法:删除新建项目的 android.support.v4 jar包 重新运行项目即可。原创 2015-11-11 21:54:44 · 440 阅读 · 0 评论 -
org.json.JSONException:
org.json.JSONException: Value Apache of type java.lang.String cannot be converted to JSONObject原创 2015-09-18 18:13:36 · 846 阅读 · 0 评论 -
Caused by: android.view.InflateException: Binary XML file line #11: Error inflating class android-su
资源文件没加载到我的是android-support-v4.jar包导入问题viewpager静态加入的方式: android:id="@+id/guidePagerId" android:layout_width="match_parent" android:layout_height="match_parent"原创 2015-09-17 19:21:31 · 475 阅读 · 0 评论 -
Unable to execute dex: Multiple dex files define Landroid/support/v4/accessi问题解决
问题发生概述: 程序编译正常,在用Eclipse调试执行时,报错Unable to execute dex: Multiple dex files define,具体解决方案如下:方法一: Eclipse->Project->去掉Build Automatically->Clear ->Build Project->Build Automatically,关闭E原创 2015-09-17 17:45:22 · 599 阅读 · 0 评论