简体   繁体   English

build.gradle无法正常工作。 红色下划线但无掉毛错误

[英]build.gradle not working. red underline but no linting errors

I have set up the standard flutter counter app in android studio. 我已经在android studio中设置了标准的flutter counter应用。 there are no linting errors however the app level build.gradle is underlined in red. 没有掉毛错误,但是应用程序级别build.gradle用红色下划线标出。

I am running android studio 3.5 latest stable build on windows 10. 我正在Windows 10上运行android studio 3.5最新稳定版本。

I have tried reinstalling android studio. 我尝试重新安装android studio。

UPDATE: Here is a screenshot of the error. 更新:这是该错误的屏幕截图。 There are no linting errors (fresh Flutter counter app project). 没有掉毛错误(新鲜的Flutter计数器应用程序项目)。 But it is stuck on initializing gradle when building for android emulator: screenshot 但是它在构建Android模拟器时卡在初始化gradle上: 屏幕截图

My Android Studio Version is 3.4.1. 我的Android Studio版本是3.4.1。

In my project, your GradleException is FileNotFoundException . 在我的项目中,您的GradleExceptionFileNotFoundException

Try to change it. 尝试更改它。

About def localProperties = new Properties() , I think your should download something use SDK Manager. 关于def localProperties = new Properties() ,我认为您应该使用SDK Manager下载某些内容。

Just like Android SDK Platform-Tools,Android SDK Build-Tools and so on. 就像Android SDK平台工具,Android SDK生成工具等。

Good Luck. 祝好运。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM