7***@qq.com
7***@qq.com
  • 发布:2023-11-08 11:08
  • 更新:2023-11-08 11:08
  • 阅读:296

Android离线打包使用极光推送插件,无法获取jpushModule

分类:插件市场

1、HBuilderX 3.95中使用本地插件方式引入极光推送原生插件,并制作自定义调试基座,能正常运行获取到RegistrationID ,且推送测试成功;
2、但是采用android离线打包使用极光推送,会出现如下日志错误,jpushModule不能获取到,

D/NetdClient: queryResolvNetidForUid nid:0, uid:10273, command.cmdId:12
D/Main_Path: autoCloseSplash4LaunchWebview IWebviewStateListener pType= 6;pArgs=708
D/DCloud_LOG: AdaFrameView.dispatchFrameViewEvents type=rendering;args=708
I/console: [WARN][JS Framework] 当前运行的基座不包含原生插件[JG-JPush],请在manifest中配置该插件,重新制作包括该原生插件的自定义运行基座
I/console: [LOG]App Launch at App.vue:6
I/console: [ERROR][Vue warn]: Error in onLaunch hook: "TypeError: Cannot read property 'initJPushService' of undefined"

(found <Root>)  

I/console: [ERROR]TypeError: Cannot read property 'initJPushService' of undefined
I/console: [LOG]App Show at App.vue:112
D/Main_Path: autoCloseSplash4LaunchWebview IWebviewStateListener pType= 3;pArgs=80
D/DCloud_LOG: AdaFrameView.dispatchFrameViewEvents type=progressChanged;args=80
D/Main_Path: autoCloseSplash4LaunchWebview IWebviewStateListener pType= 3;pArgs=100
D/DCloud_LOG: AdaFrameView.dispatchFrameViewEvents type=progressChanged;args=100
D/Main_Path: autoCloseSplash4LaunchWebview IWebviewStateListener pType= 3;pArgs=100
D/DCloud_LOG: AdaFrameView.dispatchFrameViewEvents type=progressChanged;args=100
D/WebLoadEvent: onPageFinished=file:///storage/emulated/0/Android/data/com.test.jpushtest/apps/UNI8002586/www/uniappview.html
I/WebLoadEvent: onPageFinishedfile:///storage/emulated/0/Android/data/com.test.jpushtest/apps/
UNI8002586/www/uniappview.html
D/MainPath: autoCloseSplash4LaunchWebview IWebviewStateListener pType= 1;pArgs=file:///storage/emulated/0/Android/data/com.test.jpushtest/apps/UNI8002586/www/uniappview.html
D/adawebview: webviewimp=(<url=
uniappview.html>;<hashcode=26897582>);pushEvalJs=javascript:try{if((window.html5plus&&html5plus.isReady?html5plus:navigator.plus&&navigator.plus.isReady?navigator.plus:window.plus).runtime)var p=window.html5plus&&html5plus.isReady?html5plus:navigator.plus&&navigator.plus.isReady?navigator.plus:window.plus; p.runtime.launchLoadedTime = '645'; }catch(
){}
I/WebLoadEvent: onLoadPlusJSContent all.js注入 file:///storage/emulated/0/Android/data/com.test.jpushtest/apps/UNI8002586/www/uniappview.html;tag=onPageFinished;mAdaWebview.mPlusrequire=normal
D/DCloud_LOG: AdaFrameView.dispatchFrameViewEvents type=loaded;args=<UUID=UNI8002586>;<url=uniappview.html>;<hashcode=26897582>
D/ReceiveJSValue:
jscallnative js=["number",1]
I/AdaFrameItem: saveWebViewData url=file:///storage/emulated/0/Android/data/com.test.jpushtest/apps/
UNI8002586/www/uniappview.html
D/Map_Path: sortNWindowByZIndex beign
E/WebViewData: syncUpdateWebViewData url=null
D/ReceiveJSValue:
jscallnative js=["number",1]
D/ReceiveJSValue:
jscallnative js=["number",1]
I/console: [WARN][JS Framework] 当前运行的基座不包含原生插件[JG-JPush],请在manifest中配置该插件,重新制作包括该原生插件的自定义运行基座
I/console: [LOG]监听到jpushModule --- ---COMMA------UNDEFINED--- at pages/index/index.vue:28
D/Animation_Path: onWillDoAnimation <UUID=233193769>;<url=__uniappview.html>;<hashcode=26897582>
D/Animation_Path: onDoneAnimation <UUID=233193769>;<url=
uniappview.html>;<hashcode=26897582>
I/console: [LOG]开始监听连接状态 at pages/index/index.vue:52
E/shutao: setOption _old_win_options=io.dcloud.common.adapter.util.ViewOptions@2f363d6;_new_json_option={"bounce":"vertical","backgroundColorTop":"#efeff4","backgroundColorBottom":"#efeff4","animationAlphaBGColor":"#efeff4","webviewBGTransparent":true,"titleNView":{"autoBackButton":false,"titleText":"uni-app","titleColor":"#000000","type":"default","backgroundColor":"#F8F8F8","tags":[]},"popGesture":"none","uniPageUrl":{"path":"pages\/index\/index","query":""},"debugRefresh":{"isTab":true,"arguments":"{\"path\":\"pages\/index\/index\",\"query\":\"\"}"},"tabBGColor":"#efeff4"}
D/adadad: addNativeView outterio.dcloud.feature.nativeObj.TitleNView{c3317ae V.ED..... ......I. 0,0-0,0}
D/adadad: addNativeView inner<UUID=233193769>;<url=uniappview.html>;<hashcode=26897582>
W/Glide: Load failed for file:///storage/emulated/0/Android/data/com.test.jpushtest/apps/
UNI8002586/www/static/image/icon_component_HL.png with size [48x48]
class com.bumptech.glide.load.engine.GlideException: Failed to load resource
There were 3 causes:
java.io.FileNotFoundException(/storage/emulated/0/Android/data/com.test.jpushtest/apps/
UNI8002586/www/static/image/icon_component_HL.png: open failed: ENOENT (No such file or directory))
java.io.FileNotFoundException(open failed: ENOENT (No such file or directory))
java.io.FileNotFoundException(open failed: ENOENT (No such file or directory))
call GlideException#logRootCauses(String) for more detail
Cause (1 of 3): class com.bumptech.glide.load.engine.GlideException: Fetching data failed, class java.io.InputStream, LOCAL
There was 1 cause:
java.io.FileNotFoundException(/storage/emulated/0/Android/data/com.test.jpushtest/apps/
UNI8002586/www/static/image/icon_component_HL.png: open failed: ENOENT (No such file or directory))
call GlideException#logRootCauses(String) for more detail
Cause (1 of 1): class com.bumptech.glide.load.engine.GlideException: Fetch failed
There was 1 cause:
java.io.FileNotFoundException(/storage/emulated/0/Android/data/com.test.jpushtest/apps/
UNI8002586/www/static/image/icon_component_HL.png: open failed: ENOENT (No such file or directory))
call GlideException#logRootCauses(String) for more detail
Cause (1 of 1): class java.io.FileNotFoundException: /storage/emulated/0/Android/data/com.test.jpushtest/apps/
UNI8002586/www/static/image/icon_component_HL.png: open failed: ENOENT (No such file or directory)
Cause (2 of 3): class com.bumptech.glide.load.engine.GlideException: Fetching data failed, class android.os.ParcelFileDescriptor, LOCAL
There was 1 cause:
java.io.FileNotFoundException(open failed: ENOENT (No such file or directory))
call GlideException#logRootCauses(String) for more detail
Cause (1 of 1): class com.bumptech.glide.load.engine.GlideException: Fetch failed
There was 1 cause:
java.io.FileNotFoundException(open failed: ENOENT (No such file or directory))
call GlideException#logRootCauses(String) for more detail
Cause (1 of 1): class java.io.FileNotFoundException: open failed: ENOENT (No such file or directory)
Cause (3 of 3): class com.bumptech.glide.load.engine.GlideException: Fetching data failed, class android.content.res.AssetFileDescriptor, LOCAL
There was 1 cause:
java.io.FileNotFoundException(open failed: ENOENT (No such file or directory))
call GlideException#logRootCauses(String) for more detail
Cause (1 of 1): class java.io.FileNotFoundException: open failed: ENOENT (No such file or directory)
I/Glide: Root cause (1 of 3)
java.io.FileNotFoundException: /storage/emulated/0/Android/data/com.test.jpushtest/apps/
UNI__8002586/www/static/image/icon_component_HL.png: open failed: ENOENT (No such file or directory)
at libcore.io.IoBridge.open(IoBridge.java:496)

2023-11-08 11:08 负责人:无 分享
已邀请:

要回复问题请先登录注册