年前还可以使用uni进行离线打包,功能还是正常的,现在再离线打包,出现调起就白屏,然后卡住不动了,
在android studio倒是可以进行断点,没发现是什么问题。
也有进行过build.gradle里的增删,以图发现是哪个文件冲突了,也未果,折腾了好几天了。
而之前的使用mui资源进行离线打包是ok的,说明应该是什么地方冲突了。(http://ask.dcloud.net.cn/article/13410)
望大佬们能指定迷津,万分谢谢~~
附上build.gradle
apply plugin: 'com.android.application'
android {
// 26 15 24
compileSdkVersion 28
buildToolsVersion '28.0.3'
defaultConfig {
applicationId "com.xxx.xxxx"
minSdkVersion 21
targetSdkVersion 28
versionCode 1
versionName "1.0"
multiDexEnabled true
ndk {
// abiFilters 'x86','armeabi' //使用uniapp时必须同时选择二者或选其一
abiFilters 'x86','armeabi','armeabi-v7a'
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
lintOptions {
checkReleaseBuilds false
abortOnError false
}
sourceSets.main {
jni.srcDirs = []
jniLibs.srcDir "libs"
}
//使用uniapp时,需复制下面代码
/*代码开始*/
aaptOptions {
additionalParameters '--auto-add-overlay'
//noCompress 'foo', 'bar'
ignoreAssetsPattern "!.svn:!.git:.*:!CVS:!thumbs.db:!picasa.ini:!*.scc:*~"
}
/*代码结束*/
signingConfigs {
debug {
v1SigningEnabled true
v2SigningEnabled true
}
release {
v1SigningEnabled true
v2SigningEnabled true
}
}
}
repositories {
flatDir {
dirs 'libs'
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation fileTree(include: ['*.aar'], dir: 'libs')
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
implementation 'com.google.code.findbugs:jsr305:3.0.0'
implementation 'com.github.bumptech.glide:glide:3.7.0'
implementation 'pub.devrel:easypermissions:0.2.1'
implementation 'com.squareup.okhttp3:okhttp:3.2.0'
implementation 'com.github.bumptech.glide:okhttp3-integration:1.4.0@aar'
implementation 'com.squareup.okio:okio:1.12.0'
implementation 'com.google.code.gson:gson:2.8.0'
/*uniapp所需库-----------------------开始*/
implementation 'com.android.support:recyclerview-v7:26.1.0'
implementation 'com.alibaba.android:bindingx-core:1.0.3'
implementation 'com.alibaba.android:bindingx_weex_plugin:1.0.3'
implementation 'com.squareup.okhttp:okhttp:2.3.0'
implementation 'com.squareup.okhttp:okhttp-ws:2.3.0'
implementation 'com.alibaba:fastjson:1.1.46.android'
implementation 'com.facebook.fresco:fresco:0.12.0'
/*uniapp所需库-----------------------结束*/
// 基座需要,必须添加
implementation 'com.github.bumptech.glide:glide:4.9.0'
}
configurations.all {
resolutionStrategy {
force 'com.android.support:appcompat-v7:24.2.1'
force 'com.android.support:design:24.2.1'
}
}
控制台显示的报错信息如下所示:
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.gogo.Goplay, PID: 7616
java.lang.NoSuchFieldError: No static field design_bottom_sheet_dialog of type I in class Lcom/aliyun/snap/snap_core/R$layout; or its superclasses (declaration of 'com.aliyun.snap.snap_core.R$layout' appears in /data/app/com.gogo.Goplay-2R0VJIMAq7TscittnpvKLw==/base.apk)
at com.aliyun.demo.R$layout.<clinit>(R.java:1167)
at com.aliyun.demo.recorder.AliyunVideoRecorder.onCreate(SourceFile:143)
at android.app.Activity.performCreate(Activity.java:7287)
at android.app.Activity.performCreate(Activity.java:7278)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1215)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2927)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3095)
at android.app.ActivityThread.-wrap12(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1748)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6900)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:820)
zhangdaren (作者)
木有,几个月没弄了。
2019-09-18 00:08