当前位置:网站首页>After integrating the aurora push plug-in in the uni app, the real machine debugging prompts "the currently running base does not contain the native plug-in [jg-jpush]..." Solutions to problems

After integrating the aurora push plug-in in the uni app, the real machine debugging prompts "the currently running base does not contain the native plug-in [jg-jpush]..." Solutions to problems

2022-06-25 01:38:00 Sweet night comes

1 Problem description

The latest one is uni-app Mixed development app project , Used in the project Aurora push To push real-time messages
adopt uni-app Integrated JG-JPush After the plug-in , After the real machine commissioning and operation project , The console outputs the following error message
The currently running base does not contain native plug-ins [JG-JPush], Please be there. manifest The plug-in is configured in , Remake the custom running base including the native plug-in

The cause of the problem is clear , Namely uni-app The base provided to developers for real machine debugging does not contain Aurora push plug-ins , It is definitely not possible to use the default base , What shall I do?
 Insert picture description here

2 Solution

2.1 Create custom android Commissioning base

hbuilderx It provides us with an easy-to-use function “ Custom debug base ”, Next, let's talk about how to operate , It's also very simple .
【 function 】-【 Run to cell phone or Simulator 】-【 Make custom debug base 】
 Insert picture description here

Fill in the package name. , Choose traditional packaging , Click on 【 pack 】, Then wait , Because there are a lot of people using cloud packaging , Need to line up , Just wait here quietly , Just look at the log prompt on the console .
 Insert picture description here
Packing queue , wait a moment
 Insert picture description here
OK, Okay , My custom base is packed
 Insert picture description here

2.2 Specify to run the real machine debugging of the project through the custom base

Run base selection , Select custom debug base .
 Insert picture description here
Run the project ,【 function 】-【 Run to cell phone or Simulator 】-【 Run to the Android App Pedestal 】 that will do  Insert picture description here

2.3 The results verify that , Verify whether the aurora plug-in is successfully introduced

 Insert picture description here
Print this object when the page is loaded
 Insert picture description here
 Insert picture description here
 Insert picture description here
I hope my article can help my friends who encounter the same problems ~

原网站

版权声明
本文为[Sweet night comes]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/176/202206242116299274.html