当我运行我的健身应用程序时,它会出现此错误:
Error:Execution failed for task ':app:fabricGenerateResourcesDebug'. > Crashlytics Developer Tools error.
这是我的宣言:
我不知道如何生成Fabric apikey。请帮帮我。
<application
<meta-data
android:name="io.fabric.ApiKey"
android:value="ApiKey" />
</application>
build.gradle:
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'io.fabric.tools:gradle:1.+'
}
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
repositories {
maven { url 'https://maven.fabric.io/public' }
}
android {
compileSdkVersion 25
buildToolsVersion "23.0.3"
defaultConfig {
applicationId 'com.blackcj.fitdata'
minSdkVersion 21
targetSdkVersion 25
versionCode 2
versionName "0.1.0"
multiDexEnabled true
}
lintOptions {
abortOnError false
absolutePaths false
lintConfig file("lint.xml")
}
}
dependencies {
compile 'com.android.support:multidex:1.0.1'
compile 'com.google.android.gms:play-services:9.4.0'
compile 'com.google.firebase:firebase-core:9.4.0'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:recyclerview-v7:23.4.0'
compile 'com.android.support:cardview-v7:23.4.0'
compile 'com.android.support:palette-v7:23.4.0'
compile 'com.android.support:design:23.4.0'
compile 'org.achartengine:achartengine:1.2.0'
compile 'com.jakewharton:butterknife:7.0.0'
compile 'com.getbase:floatingactionbutton:1.9.1'
compile 'nl.qbusict:cupboard:2.1.1'
compile fileTree(dir: 'libs', include: ['*.jar'])
compile('com.crashlytics.sdk.android:crashlytics:2.6.1@aar') {
transitive = true;
}
}
apply plugin: 'com.google.gms.google-services'
我希望当我在清单中生成密钥和粘贴时,它将解决此错误但是如何生成结构apikey我不知道。
欢迎所有建议。感谢。