项目中有两个应用都集成了个推服务,并在androidManifest.xml文件中添加了下面一段代码

   
    android:name="android.support.v4.content.FileProvider"    android:authorities="com.dysen.qj.wMeter.fileProvider"    android:grantUriPermissions="true"    android:exported="false">            android:name="android.support.FILE_PROVIDER_PATHS"        android:resource="@xml/file_paths" />

现在说一下出错的原因,因为自己的疏忽,将两个应用的android:authorities对应的值写成一样的了,正确的解决方案就是将android:authorities对应的值写成不一样的就可以了。

更多相关文章

  1. 使用viewpager切换fragment加载两个webview时卡顿
  2. android studio 不能导包问题解决方案
  3. Android 10 适配的常见问题及解决方案
  4. No resource found that matches the given name 'android:Widge
  5. Android Device Monitor的 “provide the path to the Android S
  6. Android Studio使用过程中常见问题及解决方案
  7. android转屏,切换屏幕,横竖屏(onConfigurationChanged)会重新加载 On

随机推荐

  1. Android新手笔记—六大布局
  2. Ad-hoc hack for Android
  3. android学汇资料总整理
  4. Android(安卓)xml资源文件中@、@android:
  5. android 布局属性
  6. Android中自定义水平进度条样式之黑色虚
  7. android布局属性的介绍
  8. android tabhost位于底部
  9. android软键盘右下角按键设置
  10. 如何用android:layout_weight弄个满意的