w***@163.com
w***@163.com
  • 发布:2019-04-18 14:34
  • 更新:2019-04-18 17:56
  • 阅读:1761

android本地打包 用ajaxuoload.js上传文件闪退

分类:HTML5+

云打包用ajaxuoload.js上传文件正常,本地打包闪退,是缺少权限?权限该加的都加了
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.VIBRATE"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<uses-permission android:name="android.permission.CALL_PHONE"/>
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>

<uses-permission android:name="android.permission.SYSTEM_OVERLAY_WINDOW" />  
<uses-permission android:name="com.qti.permission.PROFILER" />  
<uses-permission android:name="android.permission.WRITE_SETTINGS"/>  

<uses-permission android:name="android.permission.WAKE_LOCK"/>  
<uses-permission android:name="android.permission.CALL_PHONE"/>  
<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/>  

<!--拍照-->  
<uses-permission android:name="android.permission.CAMERA" />  
<!--读取SD卡的权限:打开相册选取图片所必须的权限-->  
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
2019-04-18 14:34 负责人:无 分享
已邀请:
w***@163.com

w***@163.com (作者)

2019-04-18 16:23:50.242 18212-18212/com.hzgxr.jinlin D/HwWechatOptimizeImpl: mIsEffect:false
2019-04-18 16:23:50.275 18212-18212/com.hzgxr.jinlin D/HwRTBlurUtils: check blur style for HwPhoneWindow, themeResId : 0x01030132, context : android.view.ContextThemeWrapper@ec6d708, Nhwext : 0, get Blur : disable with , null
2019-04-18 16:23:50.418 18212-18212/com.hzgxr.jinlin E/HwResourcesImpl: readDefaultConfig : FileNotFoundException
2019-04-18 16:23:50.444 18212-18212/com.hzgxr.jinlin W/System.err: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.XmlResourceParser android.content.pm.ProviderInfo.loadXmlMetaData(android.content.pm.PackageManager, java.lang.String)' on a null object reference
2019-04-18 16:23:50.444 18212-18212/com.hzgxr.jinlin W/System.err: at android.support.v4.content.FileProvider.parsePathStrategy(FileProvider.java:604)
2019-04-18 16:23:50.444 18212-18212/com.hzgxr.jinlin W/System.err: at android.support.v4.content.FileProvider.getPathStrategy(FileProvider.java:578)
2019-04-18 16:23:50.444 18212-18212/com.hzgxr.jinlin W/System.err: at android.support.v4.content.FileProvider.getUriForFile(FileProvider.java:416)
2019-04-18 16:23:50.444 18212-18212/com.hzgxr.jinlin W/System.err: at io.dcloud.common.adapter.ui.FileChooseDialog.<init>(FileChooseDialog.java:93)
2019-04-18 16:23:50.444 18212-18212/com.hzgxr.jinlin W/System.err: at io.dcloud.common.adapter.ui.WebJsEvent.openFileChooserLogic(WebJsEvent.java:455)
2019-04-18 16:23:50.444 18212-18212/com.hzgxr.jinlin W/System.err: at io.dcloud.common.adapter.ui.WebJsEvent.onShowFileChooser(WebJsEvent.java:433)
2019-04-18 16:23:50.445 18212-18212/com.hzgxr.jinlin W/System.err: at com.android.webview.chromium.WebViewContentsClientAdapter.showFileChooser(WebViewContentsClientAdapter.java:554)
2019-04-18 16:23:50.445 18212-18212/com.hzgxr.jinlin W/System.err: at org.chromium.android_webview.AwWebContentsDelegateAdapter.runFileChooser(AwWebContentsDelegateAdapter.java:72)
2019-04-18 16:23:50.445 18212-18212/com.hzgxr.jinlin W/System.err: at android.os.MessageQueue.nativePollOnce(Native Method)
2019-04-18 16:23:50.445 18212-18212/com.hzgxr.jinlin W/System.err: at android.os.MessageQueue.next(MessageQueue.java:379)
2019-04-18 16:23:50.445 18212-18212/com.hzgxr.jinlin W/System.err: at android.os.Looper.loop(Looper.java:144)
2019-04-18 16:23:50.445 18212-18212/com.hzgxr.jinlin W/System.err: at android.app.ActivityThread.main(ActivityThread.java:7383)
2019-04-18 16:23:50.445 18212-18212/com.hzgxr.jinlin W/System.err: at java.lang.reflect.Method.invoke(Native Method)
2019-04-18 16:23:50.445 18212-18212/com.hzgxr.jinlin W/System.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:469)
2019-04-18 16:23:50.445 18212-18212/com.hzgxr.jinlin W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:963)

w***@163.com

w***@163.com (作者)

2019-04-18 16:23:50.242 18212-18212/com.hzgxr.jinlin D/HwWechatOptimizeImpl: mIsEffect:false
2019-04-18 16:23:50.275 18212-18212/com.hzgxr.jinlin D/HwRTBlurUtils: check blur style for HwPhoneWindow, themeResId : 0x01030132, context : android.view.ContextThemeWrapper@ec6d708, Nhwext : 0, get Blur : disable with , null
2019-04-18 16:23:50.418 18212-18212/com.hzgxr.jinlin E/HwResourcesImpl: readDefaultConfig : FileNotFoundException
2019-04-18 16:23:50.444 18212-18212/com.hzgxr.jinlin W/System.err: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.XmlResourceParser android.content.pm.ProviderInfo.loadXmlMetaData(android.content.pm.PackageManager, java.lang.String)' on a null object reference
2019-04-18 16:23:50.444 18212-18212/com.hzgxr.jinlin W/System.err: at android.support.v4.content.FileProvider.parsePathStrategy(FileProvider.java:604)
2019-04-18 16:23:50.444 18212-18212/com.hzgxr.jinlin W/System.err: at android.support.v4.content.FileProvider.getPathStrategy(FileProvider.java:578)
2019-04-18 16:23:50.444 18212-18212/com.hzgxr.jinlin W/System.err: at android.support.v4.content.FileProvider.getUriForFile(FileProvider.java:416)
2019-04-18 16:23:50.444 18212-18212/com.hzgxr.jinlin W/System.err: at io.dcloud.common.adapter.ui.FileChooseDialog.<init>(FileChooseDialog.java:93)
2019-04-18 16:23:50.444 18212-18212/com.hzgxr.jinlin W/System.err: at io.dcloud.common.adapter.ui.WebJsEvent.openFileChooserLogic(WebJsEvent.java:455)
2019-04-18 16:23:50.444 18212-18212/com.hzgxr.jinlin W/System.err: at io.dcloud.common.adapter.ui.WebJsEvent.onShowFileChooser(WebJsEvent.java:433)
2019-04-18 16:23:50.445 18212-18212/com.hzgxr.jinlin W/System.err: at com.android.webview.chromium.WebViewContentsClientAdapter.showFileChooser(WebViewContentsClientAdapter.java:554)
2019-04-18 16:23:50.445 18212-18212/com.hzgxr.jinlin W/System.err: at org.chromium.android_webview.AwWebContentsDelegateAdapter.runFileChooser(AwWebContentsDelegateAdapter.java:72)
2019-04-18 16:23:50.445 18212-18212/com.hzgxr.jinlin W/System.err: at android.os.MessageQueue.nativePollOnce(Native Method)
2019-04-18 16:23:50.445 18212-18212/com.hzgxr.jinlin W/System.err: at android.os.MessageQueue.next(MessageQueue.java:379)
2019-04-18 16:23:50.445 18212-18212/com.hzgxr.jinlin W/System.err: at android.os.Looper.loop(Looper.java:144)
2019-04-18 16:23:50.445 18212-18212/com.hzgxr.jinlin W/System.err: at android.app.ActivityThread.main(ActivityThread.java:7383)
2019-04-18 16:23:50.445 18212-18212/com.hzgxr.jinlin W/System.err: at java.lang.reflect.Method.invoke(Native Method)
2019-04-18 16:23:50.445 18212-18212/com.hzgxr.jinlin W/System.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:469)
2019-04-18 16:23:50.445 18212-18212/com.hzgxr.jinlin W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:963)

w***@163.com

w***@163.com (作者)

问题已解决,详见:https://www.jianshu.com/p/f0b2cf0e0353

该问题目前已经被锁定, 无法添加新回复