n***@163.com
n***@163.com
  • 发布:2019-04-27 18:05
  • 更新:2019-04-27 20:48
  • 阅读:1150

云端 打包失败也算了 打包次数

分类:HBuilderX

开发者中心 次数减少
https://service.dcloud.net.cn/build/errorLog/0581a9a0-68d2-11e9-92c9-f9a522a6bee5

2019-04-27 18:05 负责人:无 分享
已邀请:
DCloud_App_Array

DCloud_App_Array

为了避免无效的打包占用云端打包资源,打包失败也会计算打包次数。

日志中已经明确说明错误原因:

uses-sdk:minSdkVersion 16 cannot be smaller than version 26 declared in library [uniplugin_walle.aar] /home/pandora/.gradle/caches/transforms-1/files-1.1/uniplugin_walle.aar/5c97c8f210cec7b275eb5c7f51738094/AndroidManifest.xml as the library might be using APIs not available in 16  
Suggestion: use a compatible library with a minSdk of at most 16,  
or increase this project's minSdk version to at least 26,  
or use tools:overrideLibrary=\"uni.dcloud.io.uniplugin_walle\" to force usage (may lead to runtime failures)

应用中使用的插件uniplugin_walle中AndroidManifest.xml中要求minSdkVersion为26,应用工程中要求minSdkVersion为16。
解决方法:

  1. 降低uniplugin_walle的minSdkVersion版本
  2. 提升应用的minSdkVersion版本,配置参考https://ask.dcloud.net.cn/article/193
n***@163.com

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

好的 感谢 我再试下

n***@163.com

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

manifest.json andorid->"minSdkVersion": 22

Android Studio
文件 build.gradle
compileSdkVersion 28
minSdkVersion 22
targetSdkVersion 26
maxSdkVersion 28

uniplugin_walle 配置

apply plugin: 'com.android.library'  

android {  
    compileSdkVersion 28  

    defaultConfig {  
        minSdkVersion 22  
        targetSdkVersion 26  
        versionCode 1  
        versionName "1.0"  
        multiDexEnabled true  
        vectorDrawables.useSupportLibrary = true  
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"  
        maxSdkVersion 28  
        signingConfig signingConfigs.debug  

    }  
    lintOptions {  
        abortOnError false  
    }  

    buildTypes {  
        release {  
            minifyEnabled false  
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'  
        }  
    }  
    buildToolsVersion = '28.0.3'  
    compileOptions {  
        sourceCompatibility 1.8  
        targetCompatibility 1.8  
    }  

}  

repositories {  
    flatDir {  
        dirs 'libs'  
    }  
}  

dependencies {  
    implementation fileTree(dir: 'libs', include: ['*.jar'])  

    compileOnly fileTree(dir: '../app/libs', include: ['uniapp-release.aar'])  

    compileOnly 'com.android.support:recyclerview-v7:23.2.1'  
    compileOnly 'com.android.support:support-v4:23.2.1'  
    compileOnly 'com.android.support:appcompat-v7:23.2.1'  
    implementation 'com.alibaba:fastjson:1.2.57'  
    implementation 'com.facebook.fresco:fresco:0.12.0'  
    implementation 'com.meituan.android.walle:plugin:1.1.6'  

    /*implementation 'com.android.support:appcompat-v7:28.0.0'  
   testImplementation 'junit:junit:4.12'  
   androidTestImplementation 'com.android.support.test:runner:1.0.2'  
   androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'*/  
}

现在报这个错
https://service.dcloud.net.cn/build/errorLog/da7b7020-68e9-11e9-ba70-df3e059efcb6

该问题目前已经被锁定, 无法添加新回复