离线打包失败

519665816 2月前 130

我在hbuilderx中自定义基座调试运行正常,然后离线打包,拷贝两个插件得arr到安卓工程libs文件夹下,打包后程序在安卓上运行看不到好友、搜索也搜索不到好友,也不能发送消息 http://bbs.wildfirechat.cn/upload/images/202407/21_21_20_33821

http://bbs.wildfirechat.cn/upload/images/202407/21_21_01_85923

最新回复 (5)
  • x86 2月前
    引用 2
    你好,请附上相关日志

    抓日志,请参考这儿:https://gitee.com/wfchat/uni-chat/issues/I8AKGH?from=project-issue
  • 519665816 2月前
    引用 3
        2024-07-27 11:28:32.382  6833-6833  InputMethodManager      com.dr.piggy.jingxing.chat           V  dispatchInputEvent
        2024-07-27 11:28:32.402  6833-6833  InputManager            com.dr.piggy.jingxing.chat           I  registerInputDeviceListener Ci@83711bb
        2024-07-27 11:28:32.405  6833-6833  InputMethodManager      com.dr.piggy.jingxing.chat           V  dispatchInputEvent
        2024-07-27 11:28:32.426  6833-6884  weex                    com.dr.piggy.jingxing.chat           E  callModuleMethod >>> invoke module:wf-uni-wfc-client, method:getUserId failed. java.lang.reflect.InvocationTargetException
                                                                                                                    at java.lang.reflect.Method.invoke(Native Method)
                                                                                                                    at com.taobao.weex.bridge.MethodInvoker.invoke(Unknown Source:2)
                                                                                                                    at com.taobao.weex.bridge.NativeInvokeHelper.invoke(Unknown Source:134)
                                                                                                                    at com.taobao.weex.bridge.WXModuleManager.dispatchCallModuleMethod(Unknown Source:10)
                                                                                                                    at com.taobao.weex.bridge.WXModuleManager.callModuleMethod(Unknown Source:111)
                                                                                                                    at com.taobao.weex.bridge.WXBridgeManager.callModuleMethod(Unknown Source:85)
                                                                                                                    at com.taobao.weex.bridge.WXBridgeManager.callNativeModule(Unknown Source:89)
                                                                                                                    at com.taobao.weex.bridge.WXBridge.callNativeModule(Unknown Source:183)
                                                                                                                    at com.taobao.weex.base.SystemMessageHandler.nativeRunWork(Native Method)
                                                                                                                    at com.taobao.weex.base.SystemMessageHandler.handleMessage(Unknown Source:2)
                                                                                                                    at android.os.Handler.dispatchMessage(Handler.java:117)
                                                                                                                    at android.os.Looper.loopOnce(Looper.java:205)
                                                                                                                    at android.os.Looper.loop(Looper.java:293)
                                                                                                                    at android.os.HandlerThread.run(HandlerThread.java:110)
                                                                                                            Caused by: cn.wildfirechat.client.NotInitializedExecption: Not init!!!
                                                                                                                    at cn.wildfirechat.remote.ChatManager.Instance(ChatManager.java:371)
                                                                                                                    at cn.wildfirechat.uni.client.ClientModule.getUserId(ClientModule.java:157)
                                                                                                                    at java.lang.reflect.Method.invoke(Native Method) 
                                                                                                                    at com.taobao.weex.bridge.MethodInvoker.invoke(Unknown Source:2) 
                                                                                                                    at com.taobao.weex.bridge.NativeInvokeHelper.invoke(Unknown Source:134) 
                                                                                                                    at com.taobao.weex.bridge.WXModuleManager.dispatchCallModuleMethod(Unknown Source:10) 
                                                                                                                    at com.taobao.weex.bridge.WXModuleManager.callModuleMethod(Unknown Source:111) 
                                                                                                                    at com.taobao.weex.bridge.WXBridgeManager.callModuleMethod(Unknown Source:85) 
                                                                                                                    at com.taobao.weex.bridge.WXBridgeManager.callNativeModule(Unknown Source:89) 
                                                                                                                    at com.taobao.weex.bridge.WXBridge.callNativeModule(Unknown Source:183) 
                                                                                                                    at com.taobao.weex.base.SystemMessageHandler.nativeRunWork(Native Method) 
                                                                                                                    at com.taobao.weex.base.SystemMessageHandler.handleMessage(Unknown Source:2) 
                                                                                                                    at android.os.Handler.dispatchMessage(Handler.java:117) 
                                                                                                                    at android.os.Looper.loopOnce(Looper.java:205) 
                                                                                                                    at android.os.Looper.loop(Looper.java:293) 
                                                                                                                    at android.os.HandlerThread.run(HandlerThread.java:110) 
        2024-07-27 11:28:32.432  6833-6833  hwbr_engine_Ime         com.dr.piggy.jingxing.chat           I  onViewFocusChanged: gainFocus [false], hideKeyboardOnBlur [false]
        2024-07-27 11:28:32.829  6833-6833  HwViewRootImpl          com.dr.piggy.jingxing.chat           I  removeInvalidNode all the node in jank list is out of time
        2024-07-27 11:28:32.834  6833-6833  hwbr_engine_Ime         com.dr.piggy.jingxing.chat           I  onDetachedFromWindow
        2024-07-27 11:28:32.834  6833-6850  OpenGLRenderer          com.dr.piggy.jingxing.chat           D  gpu complete is not signaled
        2024-07-27 11:28:32.913  6833-6833  HwApsImpl               com.dr.piggy.jingxing.chat           W  not support full screen video recognize feature  ## com.dr.piggy.jingxing.chat
        2024-07-27 11:28:32.918  6833-6833  hwbr_engine_Ime         com.dr.piggy.jingxing.chat           I  onDetachedFromWindow
        2024-07-27 11:28:32.918  6833-6833  hwbr_engine_IMM         com.dr.piggy.jingxing.chat           I  hideSoftInputFromWindow
        2024-07-27 11:28:32.921  6833-6833  InputMethodManager      com.dr.piggy.jingxing.chat           I  hideSoftInputFromWindow reason=3,displayId=-1,caller=android.view.inputmethod.InputMethodManager.hideSoftInputFromWindow:1954 org.chromium.content.browser.input.ImeAdapterImpl.g:9 org.chromium.content.browser.input.ImeAdapterImpl.l:5 org.chromium.content.browser.input.ImeAdapterImpl.onDetachedFromWindow:2 
        2024-07-27 11:28:32.922  6833-6833  InputManager            com.dr.piggy.jingxing.chat           I  unregisterInputDeviceListener Ci@83711bb
        2024-07-27 11:28:32.932  6833-6833  InputMethodManager      com.dr.piggy.jingxing.chat           I  setNextServedViewLocked in view is null
        2024-07-27 11:28:32.933  6833-6833  InputMethodManager      com.dr.piggy.jingxing.chat           I  FINISH INPUT: mServedView = :<url=__uniappview.html>;<hashcode=119192878>,focus=false,windowFocus=false,autofillUiShowing=false,window=null,displayId=0,temporaryDetach=false,hasImeFocus=false
        2024-07-27 11:28:32.933  6833-6833  InputMethodManager      com.dr.piggy.jingxing.chat           I  getServedView is <url=__uniappview.html>;<hashcode=119192878>
        2024-07-27 11:28:32.933  6833-6833  InputMethodManager      com.dr.piggy.jingxing.chat           I  setServedViewLocked in view is null
        2024-07-27 11:28:32.933  6833-6833  InputMethodManager      com.dr.piggy.jingxing.chat           I  closeCurrentInput
        2024-07-27 11:28:32.933  6833-6833  HwRemoteIn...hodManager com.dr.piggy.jingxing.chat           D  hideRemoteSoftInput called.
        2024-07-27 11:28:32.933  6833-6833  HwRemoteIn...hodManager com.dr.piggy.jingxing.chat           W  isCasting false because IHwDistributedWindowManager is invalid.
        2024-07-27 11:28:32.935  6833-6833  WebViewChromium         com.dr.piggy.jingxing.chat           I  WebViewChromium.destroy, WebView : <url=__uniappview.html>;<hashcode=119192878>
        2024-07-27 11:28:32.936  6833-6833  hwschromium-11263       com.dr.piggy.jingxing.chat           I  [INFO:aw_contents.cc(1103)] ClearPendingPermissions size=0
        2024-07-27 11:28:32.938  6833-6833  hwschromium-11263       com.dr.piggy.jingxing.chat           I  [INFO:media_web_contents_observer.cc(807)] MediaWebContentsObserver::WebContentsDeviceUsage::OnMediaInputStateChanged type = -1,is_inputting = 0
        2024-07-27 11:28:33.619  6833-6850  OpenGLRenderer          com.dr.piggy.jingxing.chat           D  gpu complete is not signaled
        2024-07-27 11:28:34.121  6833-6850  OpenGLRenderer          com.dr.piggy.jingxing.chat           D  gpu complete is not signaled
        2024-07-27 11:28:34.157  6833-6833  HwDragEnhancementImpl   com.dr.piggy.jingxing.chat           D  handleTimerDrag: false
        2024-07-27 11:28:34.157  6833-6833  HwDragEnhancementImpl   com.dr.piggy.jingxing.chat           D  handleTimerDrag: false
        2024-07-27 11:28:34.158  6833-6833  HwDragEnhancementImpl   com.dr.piggy.jingxing.chat           D  handleTimerDrag: false
        2024-07-27 11:28:34.197  6833-6833  HwDragEnhancementImpl   com.dr.piggy.jingxing.chat           D  Start long press for hw drag enhancement.
        2024-07-27 11:28:34.204  6833-6833  WebViewDragEnhancement  com.dr.piggy.jingxing.chat           D  dragReset.
        2024-07-27 11:28:34.204  6833-6833  WebViewDragEnhancement  com.dr.piggy.jingxing.chat           D  dragReset cacheSize = 0
        2024-07-27 11:28:34.205  6833-6833  AudioManager            com.dr.piggy.jingxing.chat           V  querySoundEffectsEnabled...
        2024-07-27 11:28:34.206  6833-6833  AudioManager            com.dr.piggy.jingxing.chat           I  querySoundEffectsEnabled fail id: 0
        2024-07-27 11:28:34.236  6833-6850  OpenGLRenderer          com.dr.piggy.jingxing.chat           D  gpu complete is not signaled
        2024-07-27 11:28:34.255  6833-6833  hwbr_engine_Ime         com.dr.piggy.jingxing.chat           I  onViewFocusChanged: gainFocus [true], hideKeyboardOnBlur [false]
        2024-07-27 11:28:34.262  6833-6833  InputMethodManager      com.dr.piggy.jingxing.chat           I  Starting input: reason=CHECK_FOCUS
        2024-07-27 11:28:34.263  6833-6833  HwRemoteIn...hodManager com.dr.piggy.jingxing.chat           W  isCasting false because IHwDistributedWindowManager is invalid.
        2024-07-27 11:28:34.264  6833-6833  InputMethodManager      com.dr.piggy.jingxing.chat           I  Starting input: Bind resultString=SUCCESS_WITH_IME_SESSION
        2024-07-27 11:28:34.525  6833-6833  HwDragEnhancementImpl   com.dr.piggy.jingxing.chat           D  handleTimerDrag: false
        2024-07-27 11:28:34.525  6833-6833  HwDragEnhancementImpl   com.dr.piggy.jingxing.chat           D  handleTimerDrag: false
        2024-07-27 11:28:34.525  6833-6833  HwDragEnhancementImpl   com.dr.piggy.jingxing.chat           D  handleTimerDrag: false
        2024-07-27 11:28:34.572  6833-6833  HwDragEnhancementImpl   com.dr.piggy.jingxing.chat           D  Start long press for hw drag enhancement.
        2024-07-27 11:28:34.574  6833-6833  WebViewDragEnhancement  com.dr.piggy.jingxing.chat           D  dragReset.
        2024-07-27 11:28:34.574  6833-6833  WebViewDragEnhancement  com.dr.piggy.jingxing.chat           D  dragReset cacheSize = 0
        2024-07-27 11:28:34.575  6833-6833  AudioManager            com.dr.piggy.jingxing.chat           V  querySoundEffectsEnabled...
        2024-07-27 11:28:34.575  6833-6833  AudioManager            com.dr.piggy.jingxing.chat           I  querySoundEffectsEnabled fail id: 0
        2024-07-27 11:28:34.605  6833-6833  hwbr_engine_Ime         com.dr.piggy.jingxing.chat           I  onViewFocusChanged: gainFocus [false], hideKeyboardOnBlur [false]
        2024-07-27 11:28:34.605  6833-6833  hwbr_engine_Ime         com.dr.piggy.jingxing.chat           I  onViewFocusChanged: gainFocus [true], hideKeyboardOnBlur [false]
        2024-07-27 11:28:34.619  6833-6833  InputMethodManager      com.dr.piggy.jingxing.chat           I  Starting input: reason=CHECK_FOCUS
        2024-07-27 11:28:34.619  6833-6833  HwRemoteIn...hodManager com.dr.piggy.jingxing.chat           W  isCasting false because IHwDistributedWindowManager is invalid.
        2024-07-27 11:28:34.621  6833-6833  InputMethodManager      com.dr.piggy.jingxing.chat           I  Starting input: Bind resultString=SUCCESS_WITH_IME_SESSION
        2024-07-27 11:28:34.912  6833-6833  HwDragEnhancementImpl   com.dr.piggy.jingxing.chat           D  handleTimerDrag: false
        2024-07-27 11:28:34.912  6833-6833  HwDragEnhancementImpl   com.dr.piggy.jingxing.chat           D  handleTimerDrag: false
        2024-07-27 11:28:34.913  6833-6833  HwDragEnhancementImpl   com.dr.piggy.jingxing.chat           D  handleTimerDrag: false
        2024-07-27 11:28:34.915  6833-6833  WebViewDragEnhancement  com.dr.piggy.jingxing.chat           D  dragReset.
        2024-07-27 11:28:34.915  6833-6833  WebViewDragEnhancement  com.dr.piggy.jingxing.chat           D  dragReset cacheSize = 0
        2024-07-27 11:28:34.915  6833-6833  AudioManager            com.dr.piggy.jingxing.chat           V  querySoundEffectsEnabled...
        2024-07-27 11:28:34.916  6833-6833  AudioManager            com.dr.piggy.jingxing.chat           I  querySoundEffectsEnabled fail id: 0
        2024-07-27 11:28:34.938  6833-6833  hwbr_engine_Ime         com.dr.piggy.jingxing.chat           I  onViewFocusChanged: gainFocus [false], hideKeyboardOnBlur [false]
        2024-07-27 11:28:34.938  6833-6833  hwbr_engine_Ime         com.dr.piggy.jingxing.chat           I  onViewFocusChanged: gainFocus [true], hideKeyboardOnBlur [false]
        2024-07-27 11:28:34.952  6833-6833  InputMethodManager      com.dr.piggy.jingxing.chat           I  Starting input: reason=CHECK_FOCUS
        2024-07-27 11:28:34.953  6833-6833  HwRemoteIn...hodManager com.dr.piggy.jingxing.chat           W  isCasting false because IHwDistributedWindowManager is invalid.
        2024-07-27 11:28:34.962  6833-6833  InputMethodManager      com.dr.piggy.jingxing.chat           I  Starting input: Bind resultString=SUCCESS_WITH_IME_SESSION
        2024-07-27 11:28:35.639  6833-6850  OpenGLRenderer          com.dr.piggy.jingxing.chat           D  gpu complete is not signaled
        2024-07-27 11:28:36.154  6833-6851  OpenGLRenderer          com.dr.piggy.jingxing.chat           D  gpu complete is not signaled
        2024-07-27 11:28:45.567  6833-6846  System                  com.dr.piggy.jingxing.chat           W  A resource failed to call end. 
        
  • x86 2月前
    引用 4
    正常应用启动的时候,会自动初始化插件,但日志看起来是没有进行初始化失败,请用 adb logcat > log.log 抓取完整日志,以便分析为什么未进行初始化
  • 519665816 2月前
    引用 5

    老师麻烦您,我把日志放在附件里了,我用HBuilderX 自定义基座调试就是对得,放在android studio 里面离线打包就运行就不行。我想是不是我有什么依赖没有放在合适得位置上导致打包后,有些库没有打进去,另外我用的插件是跟咱们申请得修改过端口的,我在HBuilderX里面用的也是同样的插件。

    上传的附件:
  • x86 2月前
    引用 6
    app/src/main/assets/dcloud_uniplugins.json 里面,要对插件进行配置,具体请参考:

    https://gitee.com/wfchat/uni-wfc-client/blob/main/uni-Android-SDK/app/src/main/assets/dcloud_uniplugins.json
返回