Didn't find class "android.support.v4.content.FileProvider" on path:
来源:互联网 发布:女生性格 知乎 编辑:程序博客网 时间:2024/05/22 15:19
开发RN和android的混合开发今天遇到了一个问题,就是红米安卓版本4.4.4奔溃了!!!!
一开始进行了纯RN进行安装一次,发现没有问题(这个是gradle进行升级到3.0.0),那么问题来了。是什么原因导致了这个问题。其实经过发现大概定位在是okhttp这个位子导致的。这个时候我是选择升级了我的gradle到3.0.0.
但是又遇到了一个。。。。就是安装之后直接报
Didn't find class "android.support.v4.content.FileProvider" on path:
那么这个问题该怎么处理呢?思考一下,版本问题。。。minSdkVersion17是支持多少,或者说就是这个引起的。那么到官网去看看。为什么?
那么从图中我们可以看到这个问题
https://developer.android.com/studio/build/multidex.html#mdex-gradle
是不是在大于20或者小于20.。。。然后我正是17,然后遇到了4.4.4的版本
这酸爽了~~~
改改~~那么怎么改呢。按上面google说的加入compile 'com.android.support:multidex:1.0.2'
但是加完之后执行~~~请看完!!!!!
下面还有一段话 在我们的初始化文件执行这一段
public class MyApplication extends SomeOtherApplication { @Override protected void attachBaseContext(Context base) { super.attachBaseContext(context); Multidex.install(this); }}不然还是歇菜~~~~~哦也
阅读全文
0 0
- Didn't find class "android.support.v4.content.FileProvider" on path:
- Didn't find class "android.support.v4.animation.AnimatorCompatHelper"
- Didn't find class "android.support.v4.animation.AnimatorCompatHelper
- Didn't find class “android.support.v7.internal.widget.TintManager” on path
- Android 异常 Didn't find class .... on path: DexPathList[[z
- Android studio issue: Didn't find class "..." on path:DexPathList
- Android ClassNotFoundException: Didn't find class on path xxxx
- Didn't find class "android.support.v7.widget.CardView" on path: DexPathList[[zip file "/data/app/com
- Android 使用viewpager时报Didn't find class "android.support.v4.view.Viewpager"错误
- Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v4.view.ViewPager"
- 低级错误:Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v4.view.ViewPag
- didn't find class on path dexpathlist错误解决办法
- didn't find class on path dexpathli解决方案
- Didn't find class "com.mobovip.bgr.MainActivity" on path
- ClassNotFoundException: Didn't find class "...Activity" on path: DexPathList
- 报ClassNotFoundException: Didn't find class "...Activity" on path: DexPathList
- Didn't find class "...l" on path: DexPathList
- Didn't find class on path dexpathlist 错误
- java中什么叫迭代,什么叫迭代器
- java-泛型
- android应用调试之如何保存logcat日志到本地
- vue 合并表格行
- 【Scikit-Learn 中文文档】成对的矩阵, 类别和核函数
- Didn't find class "android.support.v4.content.FileProvider" on path:
- 时间戳格式化转换为日期格式
- Linux 下如何快速查找到头文件和函数定义
- 蓝桥杯 算法训练 P1102
- R语言安装R package的2种方法
- 基于maven进行ssm框架整合
- A simple SMTP email realized by Python
- Scala 之隐式转换函数(十)
- BimServer安装使用