找不到资源xml/opener_paths(aka io.ionic.starter:xml/opener_paths) [英] Resource xml/opener_paths (aka io.ionic.starter:xml/opener_paths) not found
本文介绍了找不到资源xml/opener_paths(aka io.ionic.starter:xml/opener_paths)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在android构建时出错
Getting error while android build
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="${applicationId}.fileprovider;${applicationId}.bugshaker.fileprovider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_paths" ></meta-data>
</provider>
错误消息是:
android \ app \ src \ main \ AndroidManifest.xml:39:13-41:65:AAPT:错误:未找到资源xml/opener_paths(aka io.ionic.starter:xml/opener_paths).
android\app\src\main\AndroidManifest.xml:39:13-41:65: AAPT: error: resource xml/opener_paths (aka io.ionic.starter:xml/opener_paths) not found.
推荐答案
我有相同的错误.这对我有用:
I have the same error. This is what worked for me:
我在命令提示符下转到根项目目录并运行:
I went to the root project directory in a command prompt and run:
ionic cap sync
然后,它给了我另一个错误
Then, it gave me another error in
android\capacitor-cordova-android-plugins\src\main\java\io\github\pwlin\cordova\plugins\fileopener2
我不得不改变
public class FileProvider extends android.support.v4.content.FileProvider
到
public class FileProvider extends androidx.core.content.FileProvider
现在我可以在Android设备上运行项目了
Now I'm able to run the project in an Android device
这篇关于找不到资源xml/opener_paths(aka io.ionic.starter:xml/opener_paths)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文