android - 更新android studio 2.3版本无法调试

标签 android android-gradle-plugin 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'
 }

最佳答案

在你的 android 模块级别 gradle-build 中使用它

 dexOptions {
    javaMaxHeapSize "4g"
}

关于android - 更新android studio 2.3版本无法调试,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42784258/

相关文章:

Android建表失败(near "autoincrement": syntax error)?

java - Android:在 fragment 之间传递对象

android - 删除 appwidget 时不会启动 onDeleted 方法

java - 按下按钮时播放声音-android

android - 失败 : Build failed with an exception

android - 程序类型已经存在 : com. google.thirdparty.publicsuffix

android - 什么是 Android kapt 及其用法?添加依赖项时,Gradle 中的注解处理器和 kapt 有什么区别?

android - build.gradle(项目)和 build.gradle(模块)之间的区别

gradle - Android Studio Gradle定义局部变量

android - Gradle 构建失败 - Java.exe 以非零退出值 2 完成