flutter 集成极光推送 jpush_flutter: ^2.4.4报下面错误
Error:Attribute application@name at AndroidManifest.xml:5:9-42 requires a placeholder substitution but no value for <applicationName> is provided.
需要在android/app/build.gradle文件下新增代码
极光AndroidManifest变量
原代码
manifestPlaceholders = [
JPUSH_PKGNAME : applicationId,
JPUSH_APPKEY : "appkey", // NOTE: JPush 上注册的包名对应的 Appkey.
JPUSH_CHANNEL : "developer-default", //暂时填写默认值即可.
需要修改为
manifestPlaceholders = manifestPlaceholders +[
JPUSH_PKGNAME : applicationId,
JPUSH_APPKEY : "appkey", // NOTE: JPush 上注册的包名对应的 Appkey.
JPUSH_CHANNEL : "developer-default", //暂时填写默认值即可.
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
暂无评论内容