Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/179.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 未能完成梯度执行。原因是空的。65K方法极限_Android_Build.gradle - Fatal编程技术网

Android 未能完成梯度执行。原因是空的。65K方法极限

Android 未能完成梯度执行。原因是空的。65K方法极限,android,build.gradle,Android,Build.gradle,这是应用程序模块的de build.gradle: 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 targe

这是应用程序模块的de build.gradle:

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')

}
这是项目的build.gradle

// Top-level build file where you can add configuration options common to      all 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: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
    }
}
我正在尝试使用Google cloud Messaging,我遵循了中的所有步骤,但当我将gradle文件与项目同步时,我得到了以下信息:

Failed to complete gradle execution. Cause: [empty]
我尝试实现这个解决方案:和其他类似的解决方案,但结果是一样的

这个问题的解决办法是什么?有人发生了这种事

先走一步

我找到了解决方案:

问题不在于GCM。当我尝试编译应用程序时,问题出现了。我使用命令

gradlew assembleDebug --stacktrace
我抛出了这个错误:

Unable to execute dex : method ID not in [0 , 0xFFFF ] : 65536.
我已经解决了谷歌在这里描述的步骤: 我找到了解决方案:

问题不在于GCM。当我尝试编译应用程序时,问题出现了。我使用命令

gradlew assembleDebug --stacktrace
我抛出了这个错误:

Unable to execute dex : method ID not in [0 , 0xFFFF ] : 65536.
我已经解决了谷歌在这里描述的步骤:

这是否会影响您尝试使用Android Studio构建的其他项目(不涉及GCM)?不,我已经创建了其他应用程序,Android Studio编译了FineSho谢@koh,谢谢您的回答!!这是否会影响到您尝试使用Android Studio构建的其他项目(不涉及GCM)?不,我已经创建了其他应用程序,Android Studio编译了FineThank@koh,谢谢您的回答!!这是否会影响到您尝试使用Android Studio构建的其他项目(不涉及GCM)?不,我已经创建了其他应用程序,Android Studio编译了FineThank@koh,谢谢您的回答!!为了简单起见,请在此列出要点。。。由于链接内容可能会随着时间的推移而改变。为了简单起见,请在此列出要点。。。由于链接内容可能会随着时间的推移而改变。为了简单起见,请在此列出要点。。。因为链接内容可能会随时间而变化。。