调试:文件未在安卓1.0中 [英] debug: file not found in Android 1.0

查看:167
本文介绍了调试:文件未在安卓1.0中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天,我更新到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.

.... \程序\编译\中间体\类\调试:找不到文件

....\app\build\intermediates\classes\debug: 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

推荐答案

检查<一href="http://stackoverflow.com/questions/19874743/gradle-project-refresh-failed-after-android-studio-update">this和<一href="http://stackoverflow.com/questions/21066598/android-studio-0-4-2-gradle-project-sync-failed-error">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.

这篇关于调试:文件未在安卓1.0中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆