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?
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]
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.
Packing queue, please wait
OK, okay, my custom base is packed
2.2 Specify running the project through a custom base for real machine debugging
Run base selection and select a custom debugging base.
To run the project, [Run]-[Run to mobile phone or emulator]-[Run to Android App dock] can
2.3 Result verification, verify whether the Jiguang plug-in is successfully introduced
Print this object when the page is loaded
I hope my article can help friends who encounter the same problem~