今天,我更新到Android Studio的1.0版,我试图编译什么项目时,收到以下错误。
Today I updated to Android Studio v 1.0 and I'm getting the following error when trying to compile whatever project.
.... 程序编译中间体类调试:找不到文件
....appbuildintermediatesclassesdebug: file not found
的事情是,在更新之前,我没有任何问题。这里是code,我其实是想编译。
The thing is that before updating it I had no problems. Here is the code I'm actually trying to compile.
build.grade
build.grade
apply plugin: 'com.android.application'
android {
compileSdkVersion 20
buildToolsVersion "21.1.2"
defaultConfig {
applicationId "razvitrance.testnavdrawerplz"
minSdkVersion 16
targetSdkVersion 20
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:support-v13:21.0.3'
}
build.gradle(项目)
build.gradle (for the project)
// 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.0.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
和活动code是一个简单的导航抽屉。 感谢您的帮助。
And the activity code is a simple Navigation Drawer. Thank you for helping.
这是erorr我得到。
This is the erorr i'm getting.
http://gyazo.com/bdf375a160b1662ce4eb0d4e9aed8f30
推荐答案
检查this和this的回答。
通常情况下,你将需要删除您的 grandle 文件,然后让机器人工作室生成它认为它是一个正确的,因为它是被提到的给予岗位。对我来说太当我upgrated到较新的版本,而且解决了我的问题。
Generally, you will need to delete your grandle file and let Android Studio generate the one it thinks that it is correct, as it is being mentioned in the given posts. Happened to me too when i upgrated to newer version and that solved my problem.
相关推荐
最新文章