p***@163.com
p***@163.com
  • 发布:2025-09-03 14:16
  • 更新:2025-09-03 16:52
  • 阅读:38

android离线打包成功,但是打开白屏

分类:uni-app

因为需要接入本地的原生插件,需要调试,所以用的自定义基座;
这是通过adb调试,抓取的错误:
pan@pandeMac-mini UniPlugin-Hello-AS % adb logcat | grep -i weex
09-03 12:33:19.823 883 15382 I ActivityTaskManager: START u0 {act=android.intent.action.MAIN cat=[uni.app.UNI0580519.intent.category.WEEX] flg=0x10000000 cmp=uni.app.UNI0580519/io.dcloud.PandoraEntry} from uid 2000, pid 19606
09-03 12:33:20.783 19620 19620 W System.err: at io.dcloud.weex.MoudlesLoader.initHooksClass(SourceFile:14)
09-03 12:33:20.783 19620 19620 W System.err: at io.dcloud.feature.weex.WeexInstanceMgr.onCreateProcess(SourceFile:1)
09-03 12:33:20.839 883 15382 I ActivityTaskManager: START u0 {act=android.intent.action.MAIN cat=[uni.app.UNI0580519.intent.category.WEEX] flg=0x10000000 cmp=uni.app.UNI0580519/io.dcloud.PandoraEntryActivity (has extras)} from uid 10268, pid 19620
09-03 12:33:21.032 19620 19620 I platform: ClassNotFoundException io.dcloud.feature.weex.WeexDevtoolImpl registerReloadReceiver
09-03 12:33:21.083 19620 19620 I platform: ClassNotFoundException io.dcloud.feature.weex.WeexDevtoolImpl initDebugEnvironment
09-03 12:33:21.189 19620 19620 D ApkSoSource: not allowing consideration of lib/armeabi-v7a/libweexcore.so: deferring to libdir
09-03 12:33:21.189 19620 19620 D ApkSoSource: not allowing consideration of lib/armeabi-v7a/libweexjsb.so: deferring to libdir
09-03 12:33:21.189 19620 19620 D ApkSoSource: not allowing consideration of lib/armeabi-v7a/libweexjss.so: deferring to libdir
09-03 12:33:21.189 19620 19620 D ApkSoSource: not allowing consideration of lib/armeabi-v7a/libweexjst.so: deferring to libdir
09-03 12:33:21.248 19620 19712 I weex : get default settings weexjsb : 1.0
09-03 12:33:21.262 19620 19712 E weex : tryUseRunTimeApi ? false
09-03 12:33:21.368 19620 19712 W weex : app AvailMemory ---->>>6172
09-03 12:33:21.369 19620 19620 I platform: java.lang.ClassNotFoundException: com.taobao.weex.devtools.inspector.elements.android.WXComponentDescriptor
09-03 12:33:21.383 19620 19620 I platform: ClassNotFoundException io.dcloud.feature.weex_amap.AMapPluginImpl initPlugin
09-03 12:33:21.383 19620 19620 I platform: ClassNotFoundException io.dcloud.feature.weex.map.google.GoogleMapPluginImpl initPlugin
09-03 12:33:21.384 19620 19620 I platform: java.lang.ClassNotFoundException: com.taobao.weex.devtools.inspector.elements.android.WXComponentDescriptor
09-03 12:33:21.385 19620 19620 I platform: java.lang.ClassNotFoundException: com.taobao.weex.devtools.inspector.elements.android.WXComponentDescriptor
09-03 12:33:21.386 19620 19620 I platform: ClassNotFoundException io.dcloud.feature.weex_livepusher.LivePusherPlugin initPlugin
09-03 12:33:21.386 19620 19620 I platform: ClassNotFoundException io.dcloud.feature.weex_media.VideoPlayerPlugin initPlugin
09-03 12:33:21.387 19620 19620 I platform: java.lang.ClassNotFoundException: com.taobao.weex.devtools.inspector.elements.android.WXComponentDescriptor
09-03 12:33:21.389 19620 19620 I platform: java.lang.ClassNotFoundException: com.taobao.weex.devtools.inspector.elements.android.WXComponentDescriptor
09-03 12:33:21.390 19620 19620 I platform: java.lang.ClassNotFoundException: com.taobao.weex.devtools.inspector.elements.android.WXComponentDescriptor
09-03 12:33:21.390 19620 19620 I platform: ClassNotFoundException io.dcloud.feature.weex_ad.DCWXAdPlugin initPlugin
09-03 12:33:21.390 19620 19620 I platform: java.lang.ClassNotFoundException: com.taobao.weex.devtools.inspector.elements.android.WXComponentDescriptor
09-03 12:33:21.429 19620 19712 E weex : weexjss's Path is/data/app/~~Z2IohtO2Vg5ZM84_8iCJCw==/uni.app.UNI0580519-kAkqWijYbm6JPJK4ZlOnlw==/lib/arm/libweexjss.so
09-03 12:33:21.436 19620 19712 E weex : getUseSingleProcess is running false
09-03 12:33:21.436 19620 19712 E weex : getReleaseMap:true
09-03 12:33:21.436 19620 19712 E weex : getLibJsbPath is running /data/user/0/uni.app.UNI0580519/cache/cache/weex/libs/weexjsb/armeabi-v7a/libweexjsb.so
09-03 12:33:21.436 19620 19712 E weex : getLibLdPath is running /data/app/Z2IohtO2Vg5ZM84_8iCJCw==/uni.app.UNI0580519-kAkqWijYbm6JPJK4ZlOnlw==/lib/arm:/data/app/Z2IohtO2Vg5ZM84_8iCJCw==/uni.app.UNI0580519-kAkqWijYbm6JPJK4ZlOnlw==/base.apk!/lib/armeabi-v7a
09-03 12:33:21.438 19620 19712 D WeexCore: setDebugMode 2
09-03 12:33:21.444 19620 19712 E WeexCore: startupPie :1
09-03 12:33:21.456 19720 19720 D WeexCore: jsengine#weexcore fork child succes!
09-03 12:33:21.451 19720 19720 W WeexJSBridgeThr: type=1400 audit(0.0:268623): avc: denied { setattr } for name="libweexjsb.so" dev="mmcblk0p76" ino=359998 scontext=u:r:untrusted_app:s0:c12,c257,c512,c768 tcontext=u:object_r:apk_data_file:s0 tclass=file permissive=0 app=uni.app.UNI0580519
09-03 12:33:21.451 19720 19720 W WeexJSBridgeThr: type=1400 audit(0.0:268624): avc: denied { setattr } for name="libweexjsb.so" dev="mmcblk0p76" ino=359998 scontext=u:r:untrusted_app:s0:c12,c257,c512,c768 tcontext=u:object_r:apk_data_file:s0 tclass=file permissive=0 app=uni.app.UNI0580519
09-03 12:33:21.495 19620 19620 D WebAppActivity: onCreateSplash;intent=Intent { act=android.intent.action.MAIN cat=[uni.app.UNI0580519.intent.category.WEEX] flg=0x10000000 cmp=uni.app.UNI0580519/io.dcloud.PandoraEntryActivity (has extras) }
09-03 12:33:21.550 19720 19730 E WeexCore: weex_runtime_v2_v8.cpp:638, WeexRuntime getJSFMVersion failed ,version:, exception:
09-03 12:33:22.099 19620 19620 D View_Visible_Path: AdaFrameView.setVisible pVisiblefalse <UUID=uniappservice>;io.dcloud.feature.weex.WXViewWrapper{40db2fd V..D..... ......I. 0,0-0,0}
09-03 12:33:22.099 19620 19620 D DCloud_LOG: DHAppRootView.pushFrameView<UUID=uniappservice>;io.dcloud.feature.weex.WXViewWrapper{40db2fd V..D..... ......I. 0,0-0,0}
09-03 12:33:22.385 19620 19620 E weex : idle from create instance cache size is 0
09-03 12:33:22.408 19620 19712 E weex : end getBundleType type:Vue time:0
09-03 12:33:22.418 19620 19712 E weex : reportJSException >>>> instanceId:1, exception function:dc_checkappkey, exception:
09-03 12:33:22.420 19620 19712 E weex : onJSException -11001,
09-03 12:33:22.421 19620 19712 E weex : commitCriticalExceptionRT :WX_KEY_EXCEPTION_VALIDAPPKEYexception
09-03 12:33:22.425 19620 19712 E weex : Instance 1Render error : [WXBridgeManager] invokeCreateInstance : template md5 8c8537df13425c2f369d602fbd8f34f6 length 41440 base64 md5 jIU33xNCXC82nWAvvY809g== response header {"templateSourceBase64MD5":["jIU33xNCXC82nWAvvY809g=="],"templateSourceMD5":["8c8537df13425c2f369d602fbd8f34f6"]}
09-03 12:33:22.425 19620 19712 E weex : onRenderError -1001,degradeToH5|createInstance fail|wx_create_instance_error[WXBridgeManager] invokeCreateInstance : template md5 8c8537df13425c2f369d602fbd8f34f6 length 41440 base64 md5 jIU33xNCXC82nWAvvY809g== response header {"templateSourceBase64MD5":["jIU33xNCXC82nWAvvY809g=="],"templateSourceMD5":["8c8537df13425c2f369d602fbd8f34f6"]}
09-03 12:34:16.875 19945 19945 W System.err: at io.dcloud.weex.MoudlesLoader.initHooksClass(SourceFile:14)
09-03 12:34:16.875 19945 19945 W System.err: at io.dcloud.feature.weex.WeexInstanceMgr.onCreateProcess(SourceFile:1)
09-03 12:34:17.111 19945 19945 I platform: ClassNotFoundException io.dcloud.feature.weex.WeexDevtoolImpl registerReloadReceiver
09-03 12:34:17.160 19945 19945 I platform: ClassNotFoundException io.dcloud.feature.weex.WeexDevtoolImpl initDebugEnvironment
09-03 12:34:17.274 19945 19945 D ApkSoSource: allowing considering of lib/armeabi-v7a/libweexcore.so: libweexcore.so not in system lib dir
09-03 12:34:17.275 19945 19945 D ApkSoSource: allowing considering of lib/armeabi-v7a/libweexjsb.so: libweexjsb.so not in system lib dir
09-03 12:34:17.275 19945 19945 D ApkSoSource: allowing considering of lib/armeabi-v7a/libweexjss.so: libweexjss.so not in system lib dir
09-03 12:34:17.275 19945 19945 D ApkSoSource: allowing considering of lib/armeabi-v7a/libweexjst.so: libweexjst.so not in system lib dir
09-03 12:34:17.288 19945 19945 I fb-UnpackingSoSource: extracting DSO libweexcore.so
09-03 12:34:17.291 19945 19945 I fb-UnpackingSoSource: extracting DSO libweexjsb.so
09-03 12:34:17.292 19945 19945 I fb-UnpackingSoSource: extracting DSO libweexjss.so
09-03 12:34:17.310 19945 19945 I fb-UnpackingSoSource: extracting DSO libweexjst.so
09-03 12:34:17.431 19945 19990 I weex : get default settings weexjsb : 1.0
09-03 12:34:17.445 19945 19990 E weex : tryUseRunTimeApi ? false
09-03 12:34:17.543 19945 19945 I platform: java.lang.ClassNotFoundException: com.taobao.weex.devtools.inspector.elements.android.WXComponentDescriptor
09-03 12:34:17.555 19945 19945 I platform: ClassNotFoundException io.dcloud.feature.weex_amap.AMapPluginImpl initPlugin
09-03 12:34:17.555 19945 19945 I platform: ClassNotFoundException io.dcloud.feature.weex.map.google.GoogleMapPluginImpl initPlugin
09-03 12:34:17.556 19945 19990 W weex : app AvailMemory ---->>>6124
09-03 12:34:17.556 19945 19945 I platform: java.lang.ClassNotFoundException: com.taobao.weex.devtools.inspector.elements.android.WXComponentDescriptor
09-03 12:34:17.557 19945 19945 I platform: java.lang.ClassNotFoundException: com.taobao.weex.devtools.inspector.elements.android.WXComponentDescriptor
09-03 12:34:17.558 19945 19945 I platform: ClassNotFoundException io.dcloud.feature.weex_livepusher.LivePusherPlugin initPlugin
09-03 12:34:17.558 19945 19945 I platform: ClassNotFoundException io.dcloud.feature.weex_media.VideoPlayerPlugin initPlugin
09-03 12:34:17.559 19945 19945 I platform: java.lang.ClassNotFoundException: com.taobao.weex.devtools.inspector.elements.android.WXComponentDescriptor
09-03 12:34:17.561 19945 19945 I platform: java.lang.ClassNotFoundException: com.taobao.weex.devtools.inspector.elements.android.WXComponentDescriptor
09-03 12:34:17.561 19945 19945 I platform: java.lang.ClassNotFoundException: com.taobao.weex.devtools.inspector.elements.android.WXComponentDescriptor
09-03 12:34:17.562 19945 19945 I platform: ClassNotFoundException io.dcloud.feature.weex_ad.DCWXAdPlugin initPlugin
09-03 12:34:17.562 19945 19945 I platform: java.lang.ClassNotFoundException: com.taobao.weex.devtools.inspector.elements.android.WXComponentDescriptor
09-03 12:34:17.618 19945 19990 E weex : weexjss's Path is /data/app/~~jx12zk3B05jwGoQHKOWzlg==/uni.app.UNI0580519-P1-5m2je0HXYZ7VI1PboNA==/base.apk!/lib/armeabi-v7a/libweexjss.so but file does not exist
09-03 12:34:17.817 19945 19990 E weex : getUseSingleProcess is running false
09-03 12:34:17.817 19945 19990 E weex : getReleaseMap:true
09-03 12:34:17.817 19945 19990 E weex : getLibJsbPath is running /data/user/0/uni.app.UNI0580519/cache/cache/weex/libs/weexjsb/armeabi-v7a/libweexjsb.so
09-03 12:34:17.817 19945 19990 E weex : getLibLdPath is running /data/app/jx12zk3B05jwGoQHKOWzlg==/uni.app.UNI0580519-P1-5m2je0HXYZ7VI1PboNA==/lib/arm:/data/app/jx12zk3B05jwGoQHKOWzlg==/uni.app.UNI0580519-P1-5m2je0HXYZ7VI1PboNA==/base.apk!/lib/armeabi-v7a
09-03 12:34:17.819 19945 19990 D WeexCore: setDebugMode 2
09-03 12:34:17.826 19945 19990 E WeexCore: startupPie :1
09-03 12:34:17.836 20007 20007 D WeexCore: jsengine#weexcore fork child succes!
09-03 12:34:17.831 20007 20007 W WeexJSBridgeThr: type=1400 audit(0.0:268668): avc: granted { execute } for name="libweexjsb.so" dev="mmcblk0p76" ino=58033 scontext=u:r:untrusted_app:s0:c12,c257,c512,c768 tcontext=u:object_r:app_data_file:s0:c12,c257,c512,c768 tclass=file app=uni.app.UNI0580519
09-03 12:34:18.540 19945 19945 D View_Visible_Path: AdaFrameView.setVisible pVisiblefalse <UUID=uniappservice>;io.dcloud.feature.weex.WXViewWrapper{5e1f0d1 V..D..... ......I. 0,0-0,0}
09-03 12:34:18.542 19945 19945 D DCloud_LOG: DHAppRootView.pushFrameView<UUID=uniappservice>;io.dcloud.feature.weex.WXViewWrapper{5e1f0d1 V..D..... ......I. 0,0-0,0}
09-03 12:34:19.962 19945 20006 E WeexCore: IPCException server spinWaitPeer timeout
09-03 12:34:19.962 19945 19990 E WeexCore: WeexJSConnection catch: spinWaitPeer timeout
09-03 12:34:19.962 19945 19990 E WeexCore: JSFramwork init start sender is null
09-03 12:34:19.963 19945 19990 E WeexCore: IPCFutexPageQueue.cpp:66,do munmap
09-03 12:34:19.963 19945 20006 E WeexCore: IPCFutexPageQueue.cpp:66,do munmap
09-03 12:34:19.963 19945 19990 E WeexCore: startupPie :1
09-03 12:34:19.963 20080 19990 D WeexCore: jsengine#weexcore fork child succes!
09-03 12:34:19.959 20080 20080 W WeexJSBridgeThr: type=1400 audit(0.0:268670): avc: granted { execute } for name="libweexjsb.so" dev="mmcblk0p76" ino=58033 scontext=u:r:untrusted_app:s0:c12,c257,c512,c768 tcontext=u:object_r:app_data_file:s0:c12,c257,c512,c768 tclass=file app=uni.app.UNI0580519
09-03 12:34:22.962 19945 19990 E WeexCore: WeexJSConnection catch: spinWaitPeer timeout
09-03 12:34:22.962 19945 20079 E WeexCore: IPCException server spinWaitPeer timeout
09-03 12:34:22.962 19945 19990 E WeexCore: JSFramwork init start sender is null
09-03 12:34:22.962 19945 19990 E WeexCore: IPCFutexPageQueue.cpp:66,do munmap
09-03 12:34:22.963 19945 20079 E WeexCore: IPCFutexPageQueue.cpp:66,do munmap
09-03 12:34:22.965 19945 19990 E WeexCore: script_side_in_multi_process.cpp:43,InitFramework sender is null
09-03 12:34:22.965 19945 19990 E weex : [WXBridgeManager] invokeInitFramework ExecuteJavaScript fail
09-03 12:34:22.997 19945 19990 E weex : [WXBridgeManager] invoke execJSService: framework.js uninitialized.
09-03 12:34:22.997 19945 19990 E weex : [WXBridgeManager] invoke execJSService: framework.js uninitialized.

这是我的build.gradle配置:
apply plugin: 'com.android.application'

android {

// 加上这个,就会提示错误:未配置appkey或配置错误  

// packagingOptions {
// jniLibs {
// useLegacyPackaging true
// }
// }

compileSdkVersion 35  

// buildToolsVersion '28.0.0'

namespace 'com.android.UniPlugin'  
defaultConfig {  
    applicationId "uni.app.UNI0580519"  
    minSdkVersion 24  
    targetSdkVersion 35 //建议此属性值设为21 io.dcloud.PandoraEntry 作为apk入口时   必须设置 targetSDKVersion>=21 沉浸式才生效  

    versionCode 1  
    versionName "1.0"  
    multiDexEnabled true  
    compileOptions {  
        sourceCompatibility JavaVersion.VERSION_1_8  
        targetCompatibility JavaVersion.VERSION_1_8  
    }  
    ndk {  
        // 指定你需要支持的 CPU 架构  

// abiFilters 'armeabi-v7a', 'arm64-v8a' // 所有的64位安卓设备都完美兼容32位模式
abiFilters 'armeabi-v7a'
}
}

signingConfigs {  
    config {  
        keyAlias 'aivision'  
        keyPassword '123456'  
        storeFile file('aivision.jks')  
        storePassword '123456'  
        v1SigningEnabled true  
        v2SigningEnabled true  
    }  
}  

buildTypes {  
    release {  
        signingConfig signingConfigs.config  
        zipAlignEnabled false  
        minifyEnabled false  
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'  
    }  
    debug {  
        signingConfig signingConfigs.config  
        zipAlignEnabled false  
        minifyEnabled false  
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'  
    }  
}  
//使用uniapp时,需复制下面代码  
/*代码开始*/  
aaptOptions {  
    additionalParameters '--auto-add-overlay'  
    //noCompress 'foo', 'bar'  
    ignoreAssetsPattern "!.svn:!.git:.*:!CVS:!thumbs.db:!picasa.ini:!*.scc:*~"  
}  
compileOptions {  
    sourceCompatibility JavaVersion.VERSION_1_8  
    targetCompatibility JavaVersion.VERSION_1_8  
}  
/*代码结束*/  

}
repositories {
flatDir {
dirs 'libs'
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['.jar'])
implementation fileTree(dir: 'libs', include: ['
.aar'])

implementation 'androidx.legacy:legacy-support-v4:1.0.0'  
annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'  
implementation "net.lingala.zip4j:zip4j:2.11.5"  

/*uniapp所需库-----------------------开始*/  
implementation 'androidx.recyclerview:recyclerview:1.1.0'  

// implementation 'com.facebook.fresco:fresco:1.13.0'
// implementation "com.facebook.fresco:animated-gif:1.13.0"

implementation 'com.facebook.fresco:fresco:2.5.0'  
implementation "com.facebook.fresco:animated-gif:2.5.0"  

/*uniapp所需库-----------------------结束*/  
// 基座需要,必须添加  
implementation 'com.github.bumptech.glide:glide:4.9.0'  
implementation 'com.alibaba:fastjson:1.2.83'  
implementation 'androidx.webkit:webkit:1.5.0'  
implementation 'androidx.localbroadcastmanager:localbroadcastmanager:1.0.0'  
implementation 'androidx.core:core:1.1.0'  
implementation "androidx.fragment:fragment:1.1.0"  
implementation 'androidx.appcompat:appcompat:1.1.0'  
// 添加uni-app插件  
implementation project(':uniplugin_component')  
implementation project(':uniplugin_module')  
implementation project(':uniplugin_richalert')  
// uts原生插件  

// implementation project(':uts-toast')
// uts依赖
implementation "com.squareup.okhttp3:okhttp:3.12.12"
implementation "androidx.core:core-ktx:1.6.0"
implementation "org.jetbrains.kotlin:kotlin-stdlib:1.8.10"
implementation "org.jetbrains.kotlin:kotlin-reflect:1.6.0"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.8"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.8"
implementation "com.github.getActivity:XXPermissions:18.0"
}

这是我的AndroidMainfest.xml配置:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">

<supports-screens  
    android:anyDensity="true"  
    android:largeScreens="true"  
    android:normalScreens="true"  
    android:resizeable="true"  
    android:smallScreens="true" />  

<!-- Barcode(二维码)  begin -->  
<uses-permission android:name="android.permission.CAMERA" />  
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />  

<uses-feature android:name="android.hardware.camera" />  
<uses-feature android:name="android.hardware.camera.autofocus" />  

<uses-permission android:name="android.permission.VIBRATE" />  
<uses-permission android:name="android.permission.FLASHLIGHT" />  
<!-- Barcode(二维码)  end -->  

<application  
    android:name="io.dcloud.application.DCloudApplication"  
    android:allowClearUserData="true"  
    android:icon="@drawable/icon"  
    android:label="@string/app_name"  
    android:largeHeap="true"  
    android:supportsRtl="true">  

    <!-- 应用入口 -->  
    <activity  
        android:name="io.dcloud.PandoraEntry"  
        android:theme="@style/TranslucentTheme"  
        android:configChanges="orientation|keyboardHidden|screenSize|mcc|mnc|fontScale"  
        android:hardwareAccelerated="true"  
        android:exported="true"  
        android:windowSoftInputMode="adjustResize">  
        <intent-filter>  
            <data android:scheme="hbuilder"/>  
            <action android:name="android.intent.action.VIEW"/>  
            <category android:name="android.intent.category.DEFAULT"/>  
            <category android:name="android.intent.category.BROWSABLE"/>  
        </intent-filter>  
        <intent-filter>  
            <data android:mimeType="image/*"/>  
            <action android:name="android.intent.action.SEND"/>  
            <category android:name="android.intent.category.DEFAULT"/>  
        </intent-filter>  
        <intent-filter>  
            <action android:name="android.intent.action.MAIN"/>  
            <category android:name="android.intent.category.LAUNCHER"/>  
            <category android:name="uni.app.UNI0580519.intent.category.WEEX" />  
        </intent-filter>  
    </activity>  
    <meta-data android:name="dcloud_uninview_background"  
        android:value="true"/>  

    <activity  
        android:name="io.dcloud.PandoraEntryActivity"  
        android:launchMode="singleTask"  
        android:configChanges="orientation|keyboardHidden|screenSize|mcc|mnc|fontScale|keyboard|smallestScreenSize|screenLayout|screenSize|uiMode"  
        android:hardwareAccelerated="true"  
        android:permission="com.miui.securitycenter.permission.AppPermissionsEditor"  
        android:screenOrientation="user"  
        android:theme="@style/DCloudTheme"  
        android:exported="true"  
        android:windowSoftInputMode="adjustResize">  

        <intent-filter>  

            <category  
                android:name="android.intent.category.DEFAULT" />  

            <category  
                android:name="android.intent.category.BROWSABLE" />  

            <action  
                android:name="android.intent.action.VIEW" />  

            <data android:scheme="hbuilder" />  
        </intent-filter>  
    </activity>  
    <meta-data  
        android:name="dcloud_appkey"  
        android:value="92f3533f06ea096d5117e45dea09077b" />  

<!-- 关闭「多进程 JS」-->
<!-- <meta-data android:name="weex_use_single_process" android:value="true"/>-->
</application>

</manifest>

HBuilder用的是4.76版本:

Android 离线SDK - 正式版,用的是这个版本,目前是最新的:

2025年07月15日发布——HBuilderX(4.76.2025082103)

就这个一个东西,调试一周了,搞不定;

2025-09-03 14:16 负责人:无 分享
已邀请:
DCloud_Android_zl

DCloud_Android_zl

试一下SDK中的示例能否正常运行?

  • p***@163.com (作者)

    帮我看下是哪个示例?

    2025-09-03 16:12

p***@163.com

p***@163.com (作者)

是哪个示例啊

  • DCloud_Android_zl

    随便一个都可以,换一下资源和appkey,然后运行试试。

    2025-09-03 16:15

  • p***@163.com (作者)

    回复 DCloud_Android_zl:

    新建了一个uniapp工程,里面啥都没有;

    将appId和appkey替换了,问题仍然是一样的;

    这是打印的日志:


    897 I ActivityTaskManager: START u0 {act=android.intent.action.MAIN cat=[uni.app.UNIAAEDED3.intent.category.WEEX] flg=0x10000000 cmp=uni.app.UNIAAEDED3/io.dcloud.PandoraEntry} from uid 2000, pid 3887

    09-03 16:49:22.135 3928 3928 W System.err: at io.dcloud.weex.MoudlesLoader.initHooksClass(SourceFile:14)

    09-03 16:49:22.136 3928 3928 W System.err: at io.dcloud.feature.weex.WeexInstanceMgr.onCreateProcess(SourceFile:1)

    09-03 16:49:22.185 883 6691 I ActivityTaskManager: START u0 {act=android.intent.action.MAIN cat=[uni.app.UNIAAEDED3.intent.category.WEEX] flg=0x10000000 cmp=uni.app.UNIAAEDED3/io.dcloud.PandoraEntryActivity (has extras)} from uid 10274, pid 3928

    09-03 16:49:22.379 3928 3928 I platform: ClassNotFoundException io.dcloud.feature.weex.WeexDevtoolImpl registerReloadReceiver

    09-03 16:49:22.402 3928 3928 I platform: ClassNotFoundException io.dcloud.feature.weex.WeexDevtoolImpl initDebugEnvironment

    09-03 16:49:22.505 3928 3928 D ApkSoSource: allowing considering of lib/arm64-v8a/libweexcore.so: libweexcore.so not in system lib dir

    09-03 16:49:22.505 3928 3928 D ApkSoSource: allowing considering of lib/arm64-v8a/libweexjsb.so: libweexjsb.so not in system lib dir

    09-03 16:49:22.505 3928 3928 D ApkSoSource: allowing considering of lib/arm64-v8a/libweexjss.so: libweexjss.so not in system lib dir

    09-03 16:49:22.505 3928 3928 D ApkSoSource: allowing considering of lib/arm64-v8a/libweexjst.so: libweexjst.so not in system lib dir

    09-03 16:49:22.520 3928 3928 I fb-UnpackingSoSource: extracting DSO libweexcore.so

    09-03 16:49:22.523 3928 3928 I fb-UnpackingSoSource: extracting DSO libweexjsb.so

    09-03 16:49:22.524 3928 3928 I fb-UnpackingSoSource: extracting DSO libweexjss.so

    09-03 16:49:22.548 3928 3928 I fb-UnpackingSoSource: extracting DSO libweexjst.so

    09-03 16:49:22.672 3928 4016 I weex : get default settings weexjsb : -1

    09-03 16:49:22.781 3928 3928 I platform: java.lang.ClassNotFoundException: com.taobao.weex.devtools.inspector.elements.android.WXComponentDescriptor

    09-03 16:49:22.795 3928 3928 I platform: ClassNotFoundException io.dcloud.feature.weex_amap.AMapPluginImpl initPlugin

    09-03 16:49:22.795 3928 3928 I platform: ClassNotFoundException io.dcloud.feature.weex.map.google.GoogleMapPluginImpl initPlugin

    09-03 16:49:22.796 3928 3928 I platform: java.lang.ClassNotFoundException: com.taobao.weex.devtools.inspector.elements.android.WXComponentDescriptor

    09-03 16:49:22.797 3928 3928 I platform: java.lang.ClassNotFoundException: com.taobao.weex.devtools.inspector.elements.android.WXComponentDescriptor

    09-03 16:49:22.797 3928 3928 I platform: ClassNotFoundException io.dcloud.feature.weex_livepusher.LivePusherPlugin initPlugin

    09-03 16:49:22.798 3928 3928 I platform: ClassNotFoundException io.dcloud.feature.weex_media.VideoPlayerPlugin initPlugin

    09-03 16:49:22.799 3928 3928 I platform: java.lang.ClassNotFoundException: com.taobao.weex.devtools.inspector.elements.android.WXComponentDescriptor

    09-03 16:49:22.938 3928 3928 D WebAppActivity: onCreateSplash;intent=Intent { act=android.intent.action.MAIN cat=[uni.app.UNIAAEDED3.intent.category.WEEX] flg=0x10000000 cmp=uni.app.UNIAAEDED3/io.dcloud.PandoraEntryActivity (has extras) }

    09-03 16:49:23.070 3928 4016 I weex : save default settings weexjsb:1.0

    09-03 16:49:23.083 3928 4016 E weex : tryUseRunTimeApi ? false

    09-03 16:49:23.215 3928 4016 E weex : [WXBridgeManager] invoke execJSService: framework.js uninitialized.

    09-03 16:49:23.215 3928 4016 E weex : [WXBridgeManager] invoke execJSService: framework.js uninitialized.

    09-03 16:49:23.243 3928 4016 W weex : app AvailMemory ---->>>6035

    09-03 16:49:23.377 3928 4016 E weex : weexjss's Path is /data/app/~~IXtL6f9KptGnT3YvAjyXoA==/uni.app.UNIAAEDED3-bqoUKW-EEEKPfOOqT2L4Sg==/base.apk!/lib/arm64-v8a/libweexjss.so but file does not exist

    09-03 16:49:23.386 3928 4016 E weex : getUseSingleProcess is running false

    09-03 16:49:23.387 3928 4016 E weex : getReleaseMap:true

    09-03 16:49:23.387 3928 4016 E weex : getLibJsbPath is running /data/user/0/uni.app.UNIAAEDED3/cache/cache/weex/libs/weexjsb/arm64-v8a/libweexjsb.so

    09-03 16:49:23.387 3928 4016 E weex : getLibLdPath is running /data/app/IXtL6f9KptGnT3YvAjyXoA==/uni.app.UNIAAEDED3-bqoUKW-EEEKPfOOqT2L4Sg==/lib/arm64:/data/app/IXtL6f9KptGnT3YvAjyXoA==/uni.app.UNIAAEDED3-bqoUKW-EEEKPfOOqT2L4Sg==/base.apk!/lib/arm64-v8a

    09-03 16:49:23.388 3928 4016 D WeexCore: setDebugMode 2

    09-03 16:49:23.403 3928 4016 E WeexCore: startupPie :1

    09-03 16:49:23.414 4096 4096 D WeexCore: jsengine#weexcore fork child succes!

    09-03 16:49:23.411 4096 4096 W WeexJSBridgeThr: type=1400 audit(0.0:269937): avc: granted { execute } for name="libweexjsb.so" dev="mmcblk0p76" ino=397707 scontext=u:r:untrusted_app:s0:c18,c257,c512,c768 tcontext=u:object_r:app_data_file:s0:c18,c257,c512,c768 tclass=file app=uni.app.UNIAAEDED3

    09-03 16:49:23.411 4096 4096 W WeexJSBridgeThr: type=1400 audit(0.0:269938): avc: granted { execute } for name="libweexjsb.so" dev="mmcblk0p76" ino=397707 scontext=u:r:untrusted_app:s0:c18,c257,c512,c768 tcontext=u:object_r:app_data_file:s0:c18,c257,c512,c768 tclass=file app=uni.app.UNIAAEDED3

    09-03 16:49:23.411 4096 4096 W WeexJSBridgeThr: type=1400 audit(0.0:269939): avc: denied { execute_no_trans } for path="/data/data/uni.app.UNIAAEDED3/cache/cache/weex/libs/libweexjsb.so" dev="mmcblk0p76" ino=397707 scontext=u:r:untrusted_app:s0:c18,c257,c512,c768 tcontext=u:object_r:app_data_file:s0:c18,c257,c512,c768 tclass=file permissive=0 app=uni.app.UNIAAEDED3

    09-03 16:49:23.806 3928 3928 D View_Visible_Path: AdaFrameView.setVisible pVisiblefalse <UUID=uniappservice>;io.dcloud.feature.weex.WXViewWrapper{ae35725 V..D..... ......I. 0,0-0,0}

    09-03 16:49:23.808 3928 3928 D DCloud_LOG: DHAppRootView.pushFrameView<UUID=uniappservice>;io.dcloud.feature.weex.WXViewWrapper{ae35725 V..D..... ......I. 0,0-0,0}

    09-03 16:49:25.963 3928 4094 E WeexCore: IPCException server spinWaitPeer timeout

    09-03 16:49:25.963 3928 4016 E WeexCore: WeexJSConnection catch: spinWaitPeer timeout

    09-03 16:49:25.963 3928 4016 E WeexCore: JSFramwork init start sender is null

    09-03 16:49:25.963 3928 4094 E WeexCore: IPCFutexPageQueue.cpp:66,do munmap

    09-03 16:49:25.963 3928 4016 E WeexCore: IPCFutexPageQueue.cpp:66,do munmap

    09-03 16:49:25.964 3928 4016 E WeexCore: startupPie :1

    09-03 16:49:25.965 4133 4016 D WeexCore: jsengine#weexcore fork child succes!

    09-03 16:49:25.959 4133 4133 W WeexJSBridgeThr: type=1400 audit(0.0:269940): avc: granted { execute } for name="libweexjsb.so" dev="mmcblk0p76" ino=397707 scontext=u:r:untrusted_app:s0:c18,c257,c512,c768 tcontext=u:object_r:app_data_file:s0:c18,c257,c512,c768 tclass=file app=uni.app.UNIAAEDED3

    09-03 16:49:25.967 4133 4133 W WeexJSBridgeThr: type=1400 audit(0.0:269941): avc: granted { execute } for name="libweexjsb.so" dev="mmcblk0p76" ino=397707 scontext=u:r:untrusted_app:s0:c18,c257,c512,c768 tcontext=u:object_r:app_data_file:s0:c18,c257,c512,c768 tclass=file app=uni.app.UNIAAEDED3

    09-03 16:49:25.967 4133 4133 W WeexJSBridgeThr: type=1400 audit(0.0:269942): avc: denied { execute_no_trans } for path="/data/data/uni.app.UNIAAEDED3/cache/cache/weex/libs/libweexjsb.so" dev="mmcblk0p76" ino=397707 scontext=u:r:untrusted_app:s0:c18,c257,c512,c768 tcontext=u:object_r:app_data_file:s0:c18,c257,c512,c768 tclass=file permissive=0 app=uni.app.UNIAAEDED3

    09-03 16:49:28.962 3928 4130 E WeexCore: IPCException server spinWaitPeer timeout

    09-03 16:49:28.962 3928 4016 E WeexCore: WeexJSConnection catch: spinWaitPeer timeout

    09-03 16:49:28.962 3928 4016 E WeexCore: JSFramwork init start sender is null

    09-03 16:49:28.962 3928 4016 E WeexCore: IPCFutexPageQueue.cpp:66,do munmap

    09-03 16:49:28.962 3928 4130 E WeexCore: IPCFutexPageQueue.cpp:66,do munmap

    09-03 16:49:28.965 3928 4016 E WeexCore: script_side_in_multi_process.cpp:43,InitFramework sender is null

    09-03 16:49:28.965 3928 4016 E weex : [WXBridgeManager] invokeInitFramework ExecuteJavaScript fail

    2025-09-03 16:52

  • p***@163.com (作者)

    回复 DCloud_Android_zl: 我将Android-SDK@4.76.82455_20250822.zip解压出来,重新启用工程UniPlugin-Hello-AS,然后uniapp那边创建了一个新的;

    成功启动了;

    2025-09-03 17:20

  • DCloud_Android_zl

    回复 p***@163.com: 示例能走通的话,应该是配置不对,可以参考UniPlugin-Hello-AS中的配置修改一下原工程。

    2025-09-03 17:26

要回复问题请先登录注册