更新的android工作室版本2.3无法调试

时间:2017-03-14 11:04:18

标签: android android-gradle build.gradle

更新android studio int 2.3后我无法将我的应用程序调试到我的手机中,而我可以将其调试到虚拟机中。这会是错误吗?

我的gradle错误在This is the screen shot of my gradle result

我的App级别gradle在这里

 apply plugin: 'com.android.application'

 android {
   compileSdkVersion 23
   buildToolsVersion '25.0.0'

   defaultConfig {
      applicationId "com.example.application"
      minSdkVersion 14
      targetSdkVersion 23
      versionCode 60
      versionName "2.2.6.25"
      multiDexEnabled true
}
buildTypes {
    release {
        minifyEnabled false

        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}
lintOptions {
    checkReleaseBuilds false
 }
}




dependencies {
   compile fileTree(include: ['*.jar'], dir: 'libs')
   compile('com.android.support:appcompat-v7:23.4.0',
        'com.android.support:design:23.4.0',
        'com.android.support:cardview-v7:23.4.0',
        'com.android.support:recyclerview-v7:23.4.0',
        'com.android.support:support-annotations:23.4.0',
        'com.android.support:multidex:1.0.1')
  compile 'com.itextpdf:itextg:5.5.9'
  compile 'com.android.support:support-v4:23.4.0'
  compile 'com.google.android.gms:play-services:6.1.71'
  compile 'com.android.support.constraint:constraint-layout:1.0.1'
  testCompile 'junit:junit:4.12'
 }

1 个答案:

答案 0 :(得分:2)

android模块级gradle-build

中使用此功能
 dexOptions {
    javaMaxHeapSize "4g"
}