admin管理员组文章数量:1312782
The app uses flutter_document_picker
plugin.
flutter_document_picker: ^5.2.3
An error occurs when launching the application:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':flutter_document_picker'.
> Could not create an instance of type com.android.build.api.variant.impl.LibraryVariantBuilderImpl.
> Namespace not specified. Specify a namespace in the module's build file. See for information about setting the namespace.
If you've specified the package attribute in the source AndroidManifest.xml, you can use the AGP Upgrade Assistant to migrate to the namespace value in the build file. Refer to for general information about using the AGP Upgrade Assistant.
The namespace is written in build.gradle
android {
namespace = “com.mypackage.my_app_name”
...
And package in androidmanifest also specified:
package= “com.mypackage.my_app_name”
Probably some additional configurations are required, but the information in the documentation description of this plugin is rather scarce.
In Android Intent.ACTION_OPEN_DOCUMENT is used. This intent is supported only from Android 19 (KitKat) SDK version. So this plugin can be used only if app minSdkVersion is 19 or more.
Does this need to be written somehow in AndroidManifest.xml ?
本文标签: flutterflutterdocumentpicker creates a problem in a newly created applicationStack Overflow
版权声明:本文标题:flutter - flutter_document_picker creates a problem in a newly created application - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741880594a2402722.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论