android - 项目无法运行

标签 android android-studio

我该如何解决这个问题? android studio 一定要更新吗?谢谢:)

enter image description here

事件日志

7:12:24 PM Unlinked Gradle project?
           Import Gradle project, this will also enable Gradle Tool Window.
           Don't want to see the message for the project again: press here.
7:12:24 PM Plugin Error
           Problems found loading plugins:

           Plugin "SDK Updater" was not loaded: required plugin "Android Support" is disabled.
           Plugin "Android NDK Support" was not loaded: required plugin "Android Support" is disabled.
           Plugin "Google Cloud Tools For Android Studio" was not loaded: required plugin "Android Support" is disabled.
           Plugin "Google Cloud Testing" was not loaded: required plugin "Android Support" is disabled.
           Plugin "Google Services" was not loaded: required plugin "Android Support" is disabled.
           Disable not loaded plugins
           Enable Android Support
           Open plugin manager
7:12:24 PM Platform and Plugin Updates: A new version of Android Studio is available! (show balloon)

最佳答案

您的 LOGCAT 显示

Plugin "SDK Updater" was not loaded: required plugin "Android Support" is disabled. Plugin "Android NDK Support" was not loaded: required plugin "Android Support" is disabled. Plugin "Google Cloud Tools For Android Studio" was not loaded: required plugin "Android Support" is disabled. Plugin "Google Cloud Testing" was not loaded: required plugin "Android Support" is disabled. Plugin "Google Services" was not loaded: required plugin "Android Support" is disabled. Disable not loaded plugins Enable Android Support Open plugin manager 7:12:24 PM Platform and Plugin Updates: A new version of Android Studio is available! (show balloon)

您可以切换到该 channel (如有必要)并通过帮助 > 检查更新...(在 OSX 上,查看 Android Studio 菜单)检查更新。这将下载并安装补丁,而不是下载完整的 IDE 镜像。但请注意,如果您这样做,您将替换现有的(if)1.4 安装,而您可能不想这样做。只需将 1.4 和 1.5 Preview 并排安装即可;他们已经使用单独的设置和缓存目录。

所以

  1. 更新您的 Android Studio (还有 SDK 和存储库)

  2. 重新启动并与 Gradle 同步

关于android - 项目无法运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32949975/

相关文章:

android - 滑动菜单空白

Android ListView : Can not center items on start up, 由于空指针异常

Android:FileProvider IllegalArgumentException 无法找到包含/data/data/**/files/Videos/final.mp4 的已配置根目录

android - Android Studio Beta Channel、Android Studio Canary Channel、Android Studio Dev Channel 有什么区别?

安卓工作室错误 : Failed to find target with hash string 'android-24'

android - 授予 FileProvider 的 uri 权限会产生 SecurityException

android - 如何添加两个android :name attributes

java - 如何在两个 Android 应用程序之间创建交互

android - 无法在 Android Studio 中解析 R,但应用编译正常

android-studio - 视频通话无法接通 - Agora.io