android - Could not execute build using Gradle with Crashlytics -
i'm trying integrate current projects crashlytics, i'm following step.
my build gradle :
buildscript { repositories { mavencentral() maven { url 'http://download.crashlytics.com/maven' } } dependencies { classpath 'com.android.tools.build:gradle:0.8.+' classpath 'com.crashlytics.tools.gradle:crashlytics-gradle:1.+' classpath 'com.neenbedankt.gradle.plugins:android-apt:1.1' } } apply plugin: 'android' apply plugin: 'crashlytics' apply plugin: 'android-apt' repositories { mavencentral() maven { url 'http://download.crashlytics.com/maven' } } apt { arguments { androidmanifestfile variant.processresources.manifestfile resourcepackagename "com.sample.app" } } android { compilesdkversion 19 buildtoolsversion "19.0.3" defaultconfig { minsdkversion 14 targetsdkversion 19 versioncode 1 versionname "1.0" } buildtypes { release { runproguard false proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.txt' } } } dependencies { compile 'com.crashlytics.android:crashlytics:1.+' apt "org.androidannotations:androidannotations:3.0+" compile "org.androidannotations:androidannotations-api:3.0+" compile filetree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:support-v4:19.0.+' compile 'com.viewpagerindicator:library:2.4.1@aar' }
after gradle sync , build,
error:org.gradle.tooling.gradleconnectionexception: not execute build using gradle installation.
if remove crashlytics,it works. there configuration i'm missing ?
i had same problem , after contacting crashlytics support asked send them crashlytics log file, can found at:
on linux / windows: ~/.crashlytics/com.crashlytics.tools/crashlytics.log
on mac: ~/library/caches/com.crashlytics/com.crashlytics.tools/crashlytics.log
and there found source of problem: value of api key in manifest android:value="@string/app_crashlytics_apikey"
, instead of directly defining value android:value="123...."
i suppose, log should find out source of problem.
Comments
Post a Comment