Solution to the problem of "The currently running base does not contain the native plug-in [JG-JPush]..." during real-device debugging after uni-app integrates the Jiguang push plug-in.

1 Problem description

The latest app project is a uni-app hybrid development. In the project,Aurora Push is used for real-time message push The currently running base does not contain the native plug-in [JG-JPush]. Please configure the plug-in in the manifest and recreate a custom running base that includes the native plug-in
After integrating the JG-JPush plug-in through uni-app, after debugging and running the project on a real machine, the console outputs the following error message

The cause of the problem is very clear. It is that the base provided by uni-app for developers to use for real-device debugging does not contain the Jiguang push plug-in. It is definitely not possible to use the default base. What should I do?
Insert image description here

2 solutions

2.1 Create a custom android debugging base

hbuilderx provides us with a useful function called "customized debugging base". Next, let's talk about how to operate it. It is actually very simple.
[Run]-[Run to mobile phone or simulator]-[Create a custom debugging base]
Insert image description here

Fill in the package name, select traditional packaging, click [Package], and then wait. Because there are many people using cloud packaging, they need to queue up, so just wait quietly here. Can you look at the console log? Tips are enough.
Insert image description here
Packing queue, please wait
Insert image description here
OK, okay, my custom base is packed
Insert image description here

2.2 Specify running the project through a custom base for real machine debugging

Run base selection and select a custom debugging base.
Insert image description here
To run the project, [Run]-[Run to mobile phone or emulator]-[Run to Android App dock] canInsert image description here

2.3 Result verification, verify whether the Jiguang plug-in is successfully introduced

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

Guess you like

Origin blog.csdn.net/qq_41865652/article/details/125429963
Recommended