我是一个初学者,我正在尝试为Playstore部署vue-cli-cordova应用程序。
我的应用程序已在测试中运行,但是当我尝试npm run npm run cordova-build-android以获得APK时,我遇到了这个问题:
任务':app:fabricGenerateResourcesRelease'的执行失败。
Crashlytics开发人员工具错误。
我已经尝试过将API密钥放在这样的元标记中
<meta-data
android:name="io.fabric.ApiKey"
android:value="xxxxxxxxxxxxxxxxxxxxxxxxxx"
/>
但是当我这样做时,我会收到另一个错误:
任务':app:processReleaseManifest'的执行失败。
清单合并失败,并出现多个错误,请参阅日志
buildscript {
repositories {
google()
jcenter()
maven { url 'https://maven.fabric.io/public' } // Fabrics Maven repository from cordova-plugin-firebase
}
dependencies {
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath 'com.android.tools.build:gradle:3.3.0'
classpath 'com.google.gms:google-services:4.1.0' // google-services dependency from cordova-plugin-firebase
classpath 'io.fabric.tools:gradle:1.25.4' // fabric dependency from cordova-plugin-firebase
}
}
allprojects {
repositories {
google()
jcenter()
google() // Google's Maven repository from cordova-plugin-firebase
}
//This replaces project.properties w.r.t. build settings
project.ext {
defaultBuildToolsVersion="28.0.3" //String
defaultMinSdkVersion=19 //Integer - Minimum requirement is Android 4.4
defaultTargetSdkVersion=28 //Integer - We ALWAYS target the latest by default
defaultCompileSdkVersion=28 //Integer - We ALWAYS compile with the latest by default
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}