更新 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/