项目在华为 等手机上能正常跑起来 能正常下载,但是换成google的nexs5等序列手机 就报如下错误
Failed to find provider info for com.mozillaonline.downloads
java.lang.IllegalArgumentException: Unknown URL content://com.mozillaonline.downloads/my_downloads
参考网上一位的答案解决了,sURIMatcher.addURI(Downloads.AUTHORITY, provider.java跟配置文件中 <provider
android:name="com.mobilead.mvp.providers.downloads.DownloadProvider"
android:authorities="com.mozillaonline.downloads.cloud" /> 两个.AUTHORITY需要一样一模
然后保存 编译 部署 就可以了