-1
上に構築することができない。しかし、私は、「今すぐ同期」をクリックしたとき、私はエラーGardleは私が安全な</p> <p><a href="http://www.techjini.com/blog/securing-api-key-and-secret-key-in-android/" rel="nofollow noreferrer">http://www.techjini.com/blog/securing-api-key-and-secret-key-in-android/</a></p> <p>を自分のAPIキーを作るためのチュートリアルの下にしようとしています同期
Error:org.gradle.api.GradleException: Crashlytics Developer Tools error.
Error:com.crashlytics.tools.android.exception.PluginException: Crashlytics Developer Tools error.
Error:java.lang.IllegalArgumentException: Crashlytics found an invalid API key: "xxxxxMYFABRICKEYxxxxx".
の下に取得しますgradle.properties
####################
#Fabric
FabricKey=my fabric key
####################
グラデルファイル
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
def FABRIC_KEY = '"' + FabricKey + '"' ?: '"Error occurs..."'
android {
compileSdkVersion 26
buildToolsVersion "26.0.0"
defaultConfig {
//... other info
manifestPlaceholders = [
FABRIC_KEY : FABRIC_KEY
]
}
}
のAndroidManifest.xml
<meta-data
android:name="io.fabric.ApiKey"
android:value="${FABRIC_KEY}" />
'$ {...}' '{$ ...} 'ではない公式文書を使用してください。疑問のある品質チュートリアル – Selvin
しかし、私はまだ同じエラーを受けています – VVB
* Gardle *そのような奇妙な... – Vucko