我在离子项目中无法构建APK。
当我用apksigner验证APK时,我得到了:
WARNING: META-INF/services/com.google.protobuf.GeneratedExtensionRegistryLoader not protected by signature. Unauthorized modifications to this JAR entry will not be detected. Delete or move the entry outside of META-INF/.
我已经搜索过,看来我不得不排除文件“ META-INF / services / com.google.protobuf.GeneratedExtensionRegistryLoader”
但是,在我的build.gradle中,如果我添加了“ platforms / android / app”文件夹:
packagingOptions {
exclude 'META-INF/services/com.google.protobuf.GeneratedExtensionRegistryLoader'
}
在android {}内部,我仍然遇到相同的错误,好像没有解释排除行...
你能帮我吗?