使用工具:
build.gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
buildToolsVersion '28.0.3'
defaultConfig {
applicationId "com.zx.emold.dapeng"
minSdkVersion 16
targetSdkVersion 21
versionCode 1
versionName "1.0"
multiDexEnabled true
ndk {
abiFilters 'x86','armeabi' //使用uniapp时必须同时选择二者或选其一
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
lintOptions {
checkReleaseBuilds false
abortOnError false
}
//使用uniapp时,需复制下面代码
/*代码开始*/
aaptOptions {
additionalParameters '--auto-add-overlay'
//noCompress 'foo', 'bar'
ignoreAssetsPattern "!.svn:!.git:.*:!CVS:!thumbs.db:!picasa.ini:!*.scc:*~"
}
/*代码结束*/
}
repositories {
flatDir {
dirs 'libs'
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation fileTree(include: ['*.aar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
// 添加uniapp时需要添加recycler,bindingingx-core和bindingx_weex_plugin库
implementation 'com.android.support:recyclerview-v7:26.1.0'
implementation 'com.android.support:support-v4:26.1.0'
implementation 'com.alibaba.android:bindingx-core:1.0.3'
implementation 'com.alibaba.android:bindingx_weex_plugin:1.0.3'
}
appid修改情况:
在androidstudio中运行时只是白屏没有任何其他反应点返回后没有关闭,只能强制关闭。
报错:
02-17 13:30:16.914 14154-14154/com.zx.emold.dapeng:pushservice E/platform: ClassNotFoundException io.dcloud.feature.weex.WeexDevtoolImpl initDebugEnvironment
02-17 13:30:16.918 14154-14154/com.zx.emold.dapeng:pushservice E/WXSDKEngine: WXEnvironment.sApplication is null
02-17 13:30:16.958 14154-14179/com.zx.emold.dapeng:pushservice E/WeexCore: failed find class WMBridge
02-17 13:30:17.374 14154-14179/com.zx.emold.dapeng:pushservice E/WXParams: setCrashFilePath: /data/user/0/com.zx.emold.dapeng/app_crash
02-17 13:30:17.375 14154-14179/com.zx.emold.dapeng:pushservice E/weex: weexjss's Path is/data/app/com.zx.emold.dapeng-z00zY1ad87Ke7wWQt3yJjQ==/lib/arm/libweexjss.so
02-17 13:30:17.375 14154-14179/com.zx.emold.dapeng:pushservice E/weex: findLibJssRealPath /data/app/com.zx.emold.dapeng-z00zY1ad87Ke7wWQt3yJjQ==/lib/arm/libweexjss.so
02-17 13:30:17.394 14154-14179/com.zx.emold.dapeng:pushservice E/weex: getLibLdPath is /data/app/com.zx.emold.dapeng-z00zY1ad87Ke7wWQt3yJjQ==/lib/arm:/system/fake-libs:/data/app/com.zx.emold.dapeng-z00zY1ad87Ke7wWQt3yJjQ==/base.apk!/lib/armeabi
02-17 13:30:17.394 14154-14179/com.zx.emold.dapeng:pushservice E/weex: JavaScriptCore's Path is/data/app/com.zx.emold.dapeng-z00zY1ad87Ke7wWQt3yJjQ==/lib/arm/libJavaScriptCore.so
02-17 13:30:17.394 14154-14179/com.zx.emold.dapeng:pushservice E/weex: findLibJscRealPath /data/app/com.zx.emold.dapeng-z00zY1ad87Ke7wWQt3yJjQ==/lib/arm/libJavaScriptCore.so
02-17 13:30:17.395 14154-14179/com.zx.emold.dapeng:pushservice E/WeexCore: initFromParam is running
02-17 13:30:17.396 14154-14179/com.zx.emold.dapeng:pushservice E/weex: getUseSingleProcess is running false
02-17 13:30:17.396 14154-14179/com.zx.emold.dapeng:pushservice E/WeexCore: g_use_single_process is false
02-17 13:30:17.396 14154-14179/com.zx.emold.dapeng:pushservice E/weex: getLibJscPath is running /data/app/com.zx.emold.dapeng-z00zY1ad87Ke7wWQt3yJjQ==/lib/arm
02-17 13:30:17.396 14154-14179/com.zx.emold.dapeng:pushservice E/WeexCore: g_jscSoPath is /data/app/com.zx.emold.dapeng-z00zY1ad87Ke7wWQt3yJjQ==/lib/arm
02-17 13:30:17.396 14154-14179/com.zx.emold.dapeng:pushservice E/weex: getLibJssPath is running /data/app/com.zx.emold.dapeng-z00zY1ad87Ke7wWQt3yJjQ==/lib/arm/libweexjss.so
02-17 13:30:17.396 14154-14179/com.zx.emold.dapeng:pushservice E/WeexCore: g_jssSoPath is /data/app/com.zx.emold.dapeng-z00zY1ad87Ke7wWQt3yJjQ==/lib/arm/libweexjss.so
02-17 13:30:17.396 14154-14179/com.zx.emold.dapeng:pushservice E/WXParams: getCrashFilePath:/data/user/0/com.zx.emold.dapeng/app_crash
02-17 13:30:17.396 14154-14179/com.zx.emold.dapeng:pushservice E/WeexCore: g_crashFilePath is /data/user/0/com.zx.emold.dapeng/app_crash
02-17 13:30:17.396 14154-14179/com.zx.emold.dapeng:pushservice E/weex: getLibIcuPath is running /system/usr/icu/icudt58l.dat
02-17 13:30:17.397 14154-14179/com.zx.emold.dapeng:pushservice E/WeexCore: g_jssIcuPath is /system/usr/icu/icudt58l.dat
02-17 13:30:17.397 14154-14179/com.zx.emold.dapeng:pushservice E/weex: getLibLdPath is running /data/app/com.zx.emold.dapeng-z00zY1ad87Ke7wWQt3yJjQ==/lib/arm:/system/fake-libs:/data/app/com.zx.emold.dapeng-z00zY1ad87Ke7wWQt3yJjQ==/base.apk!/lib/armeabi
02-17 13:30:17.397 14154-14179/com.zx.emold.dapeng:pushservice E/WeexCore: lib_ld_path is /data/app/com.zx.emold.dapeng-z00zY1ad87Ke7wWQt3yJjQ==/lib/arm:/system/fake-libs:/data/app/com.zx.emold.dapeng-z00zY1ad87Ke7wWQt3yJjQ==/base.apk!/lib/armeabi
02-17 13:30:17.402 14154-14179/com.zx.emold.dapeng:pushservice E/WeexCore: xxx set_core_side is runing and 0xe67998a0
02-17 13:30:17.402 14154-14179/com.zx.emold.dapeng:pushservice E/WeexCore: ScriptBridgeInMultiProcess
02-17 13:30:17.402 14154-14179/com.zx.emold.dapeng:pushservice E/WeexCore: MultiProcessAndSoInitializer IS IN init
02-17 13:30:17.402 14154-14179/com.zx.emold.dapeng:pushservice E/WeexCore: RegisterIPCCallback is running
02-17 13:30:17.402 14154-14179/com.zx.emold.dapeng:pushservice E/WeexCore: RegisterIPCCallback is running2
02-17 13:30:17.403 14154-14179/com.zx.emold.dapeng:pushservice E/WeexCore: WeexJSConnection g_crashFileName: /data/user/0/com.zx.emold.dapeng/app_crash/crash_dump.log
02-17 13:30:17.403 14154-14179/com.zx.emold.dapeng:pushservice E/WeexCore: startupPie :1
02-17 13:30:17.592 14154-14179/com.zx.emold.dapeng:pushservice E/WeexCore: ScriptBridgeInMultiProcess finish da5eae80 0
02-17 13:30:17.709 14154-14179/com.zx.emold.dapeng:pushservice E/weex: [WXBridgeManager]invokeRegisterModules METHOD_REGISTER_MODULES success module:modal
02-17 13:30:17.712 14154-14179/com.zx.emold.dapeng:pushservice E/weex: [WXBridgeManager]invokeRegisterModules METHOD_REGISTER_MODULES success module:instanceWrap
02-17 13:30:17.722 14154-14179/com.zx.emold.dapeng:pushservice E/weex: [WXBridgeManager]invokeRegisterModules METHOD_REGISTER_MODULES success module:animation
02-17 13:30:17.733 14154-14179/com.zx.emold.dapeng:pushservice E/weex: [WXBridgeManager]invokeRegisterModules METHOD_REGISTER_MODULES success module:webview
02-17 13:30:17.744 14154-14179/com.zx.emold.dapeng:pushservice E/weex: [WXBridgeManager]invokeRegisterModules METHOD_REGISTER_MODULES success module:navigator
02-17 13:30:17.747 14154-14179/com.zx.emold.dapeng:pushservice E/weex: [WXBridgeManager]invokeRegisterModules METHOD_REGISTER_MODULES success module:stream
02-17 13:30:17.753 14154-14179/com.zx.emold.dapeng:pushservice E/weex: [WXBridgeManager]invokeRegisterModules METHOD_REGISTER_MODULES success module:timer
02-17 13:30:17.764 14154-14179/com.zx.emold.dapeng:pushservice E/weex: [WXBridgeManager]invokeRegisterModules METHOD_REGISTER_MODULES success module:storage
02-17 13:30:17.766 14154-14179/com.zx.emold.dapeng:pushservice E/weex: [WXBridgeManager]invokeRegisterModules METHOD_REGISTER_MODULES success module:clipboard
02-17 13:30:17.769 14154-14179/com.zx.emold.dapeng:pushservice E/weex: [WXBridgeManager]invokeRegisterModules METHOD_REGISTER_MODULES success module:globalEvent
02-17 13:30:17.773 14154-14179/com.zx.emold.dapeng:pushservice E/weex: [WXBridgeManager]invokeRegisterModules METHOD_REGISTER_MODULES success module:picker
02-17 13:30:17.776 14154-14179/com.zx.emold.dapeng:pushservice E/weex: [WXBridgeManager]invokeRegisterModules METHOD_REGISTER_MODULES success module:meta
02-17 13:30:17.787 14154-14179/com.zx.emold.dapeng:pushservice E/weex: [WXBridgeManager]invokeRegisterModules METHOD_REGISTER_MODULES success module:webSocket
02-17 13:30:17.792 14154-14179/com.zx.emold.dapeng:pushservice E/weex: [WXBridgeManager]invokeRegisterModules METHOD_REGISTER_MODULES success module:locale
02-17 13:30:17.806 14154-14179/com.zx.emold.dapeng:pushservice E/weex: [WXBridgeManager]invokeRegisterModules METHOD_REGISTER_MODULES success module:dom
02-17 13:30:17.863 14154-14179/com.zx.emold.dapeng:pushservice E/weex: [WXBridgeManager]invokeRegisterModules METHOD_REGISTER_MODULES success module:plus
02-17 13:30:17.886 14154-14179/com.zx.emold.dapeng:pushservice E/weex: [WXBridgeManager]invokeRegisterModules METHOD_REGISTER_MODULES success module:plusstorage
02-17 13:30:17.916 14154-14179/com.zx.emold.dapeng:pushservice E/weex: [WXBridgeManager]invokeRegisterModules METHOD_REGISTER_MODULES success module:expressionBinding
02-17 13:30:17.933 14154-14179/com.zx.emold.dapeng:pushservice E/weex: [WXBridgeManager]invokeRegisterModules METHOD_REGISTER_MODULES success module:binding
02-17 13:30:17.950 14154-14179/com.zx.emold.dapeng:pushservice E/weex: [WXBridgeManager]invokeRegisterModules METHOD_REGISTER_MODULES success module:bindingx
02-17 13:32:03.970 14154-14225/com.zx.emold.dapeng:pushservice E/ActivityThread: Failed to find provider info for com.sina.weibo.sdkProvider
峰业昳 (作者)
SDK版本是:Android-SDK@1.9.9.58073_20190121
assets/data/下文件已经更新了
日志文件是logcat筛选了所有的Error出来的,因为这些错误都比较陌生所以全贴上来了。
2019-03-05 10:29
峰业昳 (作者)
最近在忙别的事情,所以现在才回
2019-03-05 10:30
DCloud_Android_zl
回复 峰业昳:麻烦提供一下整个Android项目。
2019-03-05 14:59
峰业昳 (作者)
回复 DCloud_Android_zl:怎么提供呢?
2019-03-05 17:08