Android Studio Run 按钮什么都不做 [英] Android Studio Run button does nothing

查看:40
本文介绍了Android Studio Run 按钮什么都不做的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在创建一个全新的安卓应用程序时;我点击运行按钮,它就坐在那里,什么也不做.我假设 Gradle 存在问题,因为唯一接近错误的地方是Gradle Sync"警告我:

Upon creating a brand new android app; I click the run button, and it sits there and does absolutely nothing. I'm assuming an issue with Gradle possibly as the only thing remotely close to an error is the "Gradle Sync" warning me:

警告:项目编码 (windows-1252) 与 Gradle 构建文件 (UTF-8) 中指定的编码不匹配.这可能会导致严重的错误.

Warning:The project encoding (windows-1252) does not match the encoding specified in the Gradle build files (UTF-8). This can lead to serious bugs.

这会妨碍我做任何事情吗?几个月前,我在这里运行了一个 Android 应用程序,没有出现此类问题,所以我什至不知道要检查什么.

Would this preclude me from being able to do anything? I've had an android app running on here before a few months ago with no issues like this, so I'm not even sure what to check.

推荐答案

可能的解决方案:

  1. 在 AndroidStudio 中转到文件->InvalidateCachesAndRestart

  1. In AndroidStudio goto files->InvalidateCachesAndRestart

尝试使用 Gradle 同步产品.

Try sync product with Gradle.

一旦运行"按钮变为绿色并选择了应用程序.然后给Run

Once the Run button is green with App selected. Then give Run

要检查某些后台进程是否在按下运行按钮时正在运行,请单击 Android Studio 右下角的 GradleConsole.

To check if some background process is running on pressing the Run button, click on the GradleConsole on the bottom right corner of your Android Studio.

这篇关于Android Studio Run 按钮什么都不做的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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