android - Failed to complete gradle execution. Cause is empty. 65K Methods Limit -
this de build.gradle of app module:
apply plugin: 'com.android.application' apply plugin: 'com.google.gms.google-services' android { compilesdkversion 22 buildtoolsversion "22.0.1" defaultconfig { applicationid "com.my.app" minsdkversion 10 targetsdkversion 22 versioncode 19 versionname "1.6.2" } buildtypes { release { minifyenabled false debuggable false; proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro' } } sourcesets { main { assets.srcdirs = ['src/main/assets', 'src/main/assets/'] } } } repositories { maven { url 'http://dl.bintray.com/madcyph3r/maven/' } maven { url 'http://dl.bintray.com/amulyakhare/maven' } } dependencies { compile filetree(dir: 'libs', include: ['*.jar']) compile "com.google.android.gms:play-services:7.5.0" compile 'com.android.support:appcompat-v7:22.0.0' compile 'com.android.support:recyclerview-v7:21.0.0' compile 'net.glxn.qrgen:android:2.0' compile 'com.nineoldandroids:library:2.4.0' compile 'de.madcyph3r:materialdrawer:1.1.1@aar' compile 'com.google.maps.android:android-maps-utils:0.3.4' compile 'com.android.support:support-v4:22.2.0' compile 'com.google.zxing:core:3.2.0' compile 'me.dm7.barcodescanner:zxing:1.7' compile 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1' compile 'org.apache.commons:commons-io:1.3.2' compile files('libs/graphview-4.0.1.jar') compile files('libs/mpandroidchartlibrary-2-1-0.jar') compile files('libs/bitcoinj-core-0.12.3-bundled.jar') } and build.gradle of project
// top-level build file can add configuration options common sub-projects/modules. buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:1.1.0' classpath 'com.google.gms:google-services:1.3.0-beta1' // note: not place application dependencies here; belong // in individual module build.gradle files } } allprojects { repositories { jcenter() } } i'm trying use google cloud messaging , have followed steps in https://developers.google.com/cloud-messaging/android/client when synchronize gradle files project this:
failed complete gradle execution. cause: [empty] i tried implement solution: android studio: failed complete gradle execution, cause empty , other similar solutions result same.
what solution problem? has happened this?
thaanks in advance!!
i found solution:
the problem lies not in gcm. problem arises when try compile app. used command;
gradlew assembledebug --stacktrace and threw error:
unable execute dex : method id not in [0 , 0xffff ] : 65536. i've solved steps described google here: building apps on 65k methods
Comments
Post a Comment