Android的工作室突然不能解析符号符号、突然、工作室、Android

2023-09-11 10:50:43 作者:为了孩子他娘奋斗

Android的工作室0.4.2是做工精细,今天我打开一看,几乎一切都为红色,自动完成已停止工作。我看进口和AS似乎在告诉我它无法找到 android.support.v4 忽然(我提供的选项删除未使用的进口)。 ( android.support.v7 似乎是美好的,虽然)。

Android Studio 0.4.2 was working fine and today I opened it and almost everything was red and the auto-completion had stopped working. I look at the imports and AS seems to be telling me it can't find android.support.v4 all of a sudden (offering me the option to remove the unused imports). (android.support.v7 seems to be fine though).

东西:

重建项目 清洁项目 通讯录与文件摇篮 关闭项目,关闭AS和重新发动/重启 文件>的Invalidate缓存/重启 检查皮棉,也没有看到任何明显 双击检查所有支持库是最新的SDK管理器 检查我的Build.gradle,虽然没有变化,这是和往常一样,这是所有的工作时间的方式。

这情况下,它是相关的:

Here it is in case it's relevant:

buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:0.7.+'
    }
}
apply plugin: 'android'

repositories {
    mavenCentral()
}

android {
    compileSdkVersion 19
    buildToolsVersion '19.0.0'

    defaultConfig {
        minSdkVersion 8
        targetSdkVersion 19
    }
}

dependencies {
    compile 'com.android.support:support-v4:19.0.0'
    compile 'com.android.support:gridlayout-v7:19.0.0'
    compile 'com.android.support:appcompat-v7:19.0.0'
    compile 'com.google.android.gms:play-services:4.0.30'
    compile project(':libraries:facebook')
    compile files('libs/core.jar')
}

当我点击同步与摇篮,打开项目设置我得到一个红色的错误,告诉我​​,我有重复的库引用,并删除未使用的..

When I hit "Sync with Gradle" and open "Project Settings" I get a red error telling me I have duplicate library references and to remove the unused ones..

我的项目编译并运行正常,但我真的需要自动完成工作!有没有人有什么建议?

My project compiles and runs fine but I really need the autocomplete working!! Does anyone have any suggestions?

推荐答案

您已经走了下来,这将是有益的大部分事情的清单,但你可以尝试:

You've already gone down the list of most things that would be helpful, but you could try:

退出Android的工作室 备份你的项目 删除所有.iml文件和文件夹.idea 在重新启动的Andr​​oid Studio和重新导入你的项目

顺便说一句,你在项目结构对话框中看到错误消息,伪造大部分。

By the way, the error messages you see in the Project Structure dialog are bogus for the most part.

更新:

Android的工作室0.4.3是在金丝雀更新频道可用,并且应该有希望解决大多数问题。可能有一些挥之不去的问题;如果你看到他们在0.4.3,让我们知道,并试图给我们一个可靠的一系列步骤来重现,所以我们可以保证,我们已经采取了所有code通路看护。

Android Studio 0.4.3 is available in the canary update channel, and should hopefully solve most of these issues. There may be some lingering problems; if you see them in 0.4.3, let us know, and try to give us a reliable set of steps to reproduce so we can ensure we've taken care of all code paths.