2017-06-20 99 views
0

安装Android Studio 3.0 Canary 4后我无法在其中构建项目,甚至无法在我的旧版本中构建项目Android Studio中的2.3.2版本下载Android Studio 3.0后我无法在Android Studio 2.3.2中编译我的项目

我曾尝试以下几点

  1. 该行添加在gradle.properties - gradle.jvmargs = -Xmx1024m
  2. 试图删除文件夹.gradle
  3. 试图以管理员身份运行Android Studio
  4. 试过这也文件>无效的缓存/重新启动。

这是截图screenshot

任何帮助是明显的。 感谢

的build.gradle

apply plugin: 'com.android.application' 

android { 
    compileSdkVersion 26 
    buildToolsVersion "25.0.2" 
    defaultConfig { 
     applicationId "com.android.ucssurvey" 
     minSdkVersion 19 
     targetSdkVersion 26 
     versionCode 1 
     versionName "1.0" 
     testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 
     multiDexEnabled true 
    } 
    buildTypes { 
     release { 
      minifyEnabled false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
     } 
    } 
    repositories { 
     mavenCentral() 
    } 
} 

dependencies { 
    compile fileTree(dir: 'libs', include: ['*.jar']) 
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { 
     exclude group: 'com.android.support', module: 'support-annotations' 
    }) 
    compile 'com.android.support:appcompat-v7:26.0.0-beta2' 
    compile 'com.android.support:design:26.0.0-beta2' 
    compile 'com.android.support.constraint:constraint-layout:1.0.2' 
    testCompile 'junit:junit:4.12' 
} 
+0

我只是重新安装Android Studio,并只保留一个版本。 –

+0

'重建'项目,然后再次尝试' 为我工作 – Dennis

+0

@Rakshit添加完整的gradle屏幕截图与您的问题 –

回答

0

这个问题已经发生,因为我的组织已经安装了防病毒这是魔岛互联网安全这是阻止,因为某些文件防火墙没有更新。 请求卸载防病毒后,问题得到解决。

相关问题