当前位置:网站首页>uni-app集成极光推送插件后真机调试提示“当前运行的基座不包含原生插件[JG-JPush]...”问题的解决办法
uni-app集成极光推送插件后真机调试提示“当前运行的基座不包含原生插件[JG-JPush]...”问题的解决办法
2022-06-24 21:16:00 【嫣夜来】
1 问题描述
最新做了一个uni-app混合开发的app项目,项目中用到极光推送来进行实时消息推送
通过uni-app集成了JG-JPush插件之后, 真机调试运行项目之后, 控制台输出如下错误信息
“当前运行的基座不包含原生插件[JG-JPush],请在manifest中配置该插件,重新制作包括该原生插件的自定义运行基座”
问题的原因很清楚了, 就是uni-app提供给开发者用来进行真机调试的基座里面不包含极光推送的插件,用默认的基座肯定是不行的, 怎么办呢
2 解决方案
2.1 创建自定义android调试基座
hbuilderx给我们提供了一个好用的功能就是“自定义调试基座”, 接下来说说怎么操作,其实也很简单。
【运行】-【运行到手机或模拟器】-【制作自定义调试基座】
填写包名,选择传统打包, 点击【打包】, 之后就是等待, 因为云打包使用的人数很多,需要排队, 这里就静静等等就好,是不是看一下控制台的日志提示就可以了。
打包排队中, 稍等
OK,好了, 我的自定义基座打包好了
2.2 指定通过自定义基座运行项目真机调试
运行基座选择,选择自定义调试基座。
运行项目,【运行】-【运行到手机或模拟器】-【运行到Android App基座】即可
2.3 结果验证, 验证极光插件是否引入成功
在页面加载完毕时打印下这个对象
希望我的文章可以帮助到遇到同样问题的小伙伴~
边栏推荐
- MySQL multi condition matching fuzzy query
- How about compass stock trading software? Is it safe?
- Redis basic commands and types
- Introduction to bi-sql wildcards
- Q1季度逆势增长的华为笔电,正引领PC进入“智慧办公”时代
- Ideas and examples of divide and conquer
- Deploy a production cluster using Loki microservice pattern
- void* 指针
- [live review] 2022 Tencent cloud future community city operator recruitment conference and SaaS 2.0 new product launch!
- Convert MySQL query timestamp to date format
猜你喜欢
百度语音合成语音文件并在网站中展示
Assembly language (4) function transfer parameters
Bi SQL drop & alter
Q1季度逆势增长的华为笔电,正引领PC进入“智慧办公”时代
Tianshu night reading notes -- memory paging mechanism
15. several methods of thread synchronization
Bi SQL constraints
新一代可级联的以太网远程I/O数据采集模块
4 years of working experience, and you can't tell the five communication modes between multithreads. Can you believe it?
PMP考试“临门一脚”如何踢得漂亮?
随机推荐
汇编语言(4)函数传参
Cloud development technology summit · public welfare programming challenge [hot registration]!
Powerbi - for you who are learning
用手机在同花顺上开户靠谱吗?这样炒股有没有什么安全隐患
js数组对象转对象
Tencent moved!
Cobalt strike installation tutorial
Lenovo tongfuyao: 11 times the general trend, we attacked the city and pulled out the stronghold all the way
Introduction to bi-sql wildcards
VB 学习笔记
What to learn in VB [easy to understand]
Tencent cloud wecity Industry joint collaborative innovation to celebrate the New Year!
VB learning notes
Zuckerberg demonstrated four VR head display prototypes, and meta revealed the "family" of metauniverse
卷积与反卷积关系超详细说明及推导(反卷积又称转置卷积、分数步长卷积)
Convolution and transpose convolution
Super detailed description and derivation of convolution and deconvolution (deconvolution is also called transpose convolution and fractional step convolution)
yasea apk 下载 镜像
"One good programmer is worth five ordinary programmers!"
Q1季度逆势增长的华为笔电,正引领PC进入“智慧办公”时代