<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<div style="padding-top:60px"></div>
<form action="www.baidu.com">
<input name="file" type="file"/>
<input type="submit"/>
</form>
</body>
</html>
报错如下
E/nandroidprojec: Invalid ID 0x00000000.
D/miuisdk: current sdk level is 16
D/IconCustomizer: Generate customized icon for com.android.camera.png
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
at android.support.v4.content.FileProvider.parsePathStrategy(FileProvider.java:605)
at android.support.v4.content.FileProvider.getPathStrategy(FileProvider.java:579)
at android.support.v4.content.FileProvider.getUriForFile(FileProvider.java:417)
at io.dcloud.common.adapter.ui.FileChooseDialog.<init>(FileChooseDialog.java:93)
at io.dcloud.common.adapter.ui.WebJsEvent.openFileChooserLogic(WebJsEvent.java:456)
at io.dcloud.common.adapter.ui.WebJsEvent.onShowFileChooser(WebJsEvent.java:434)
at kd.a(PG:545)
at AK.runFileChooser(PG:72)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:326)
at android.os.Looper.loop(Looper.java:165)
at android.app.ActivityThread.main(ActivityThread.java:6806)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)
A/chromium: [FATAL:jni_android.cc(249)] Please include Java exception stack in crash report
W/google-breakpad: ### ### ### ### ### ### ### ### ### ### ### ### ###
Chrome build fingerprint:
72.0.3626.121
W/google-breakpad: 362612150
### ### ### ### ### ### ### ### ### ### ### ### ###
A/libc: Fatal signal 5 (SIGTRAP), code 1 (TRAP_BRKPT), fault addr 0x7390479f54 in tid 15179 (nandroidproject), pid 15179 (nandroidproject)
Application terminated.
逞英雄
正解 解决了
2019-08-13 10:08
七号座先生
回复 lkcd: 我也遇到这个问题了
2019-09-04 18:44
七号座先生
回复 lkcd: 楼主解决了吗?
2019-09-04 18:44
lkcd
回复 七号座先生: 可以参考这个 https://www.cnblogs.com/richerdyoung/p/6610783.html
2019-09-06 15:42
七号座先生
回复 lkcd: 好,谢谢
2019-09-06 16:11
1***@qq.com
正解,谢谢
2019-09-06 20:27
9***@qq.com
感谢,找了很多才找到正解
2019-11-21 16:27
忘川灬
回复 lkcd: 怎么解决的啊?
2020-04-26 20:01