简体   繁体   中英

build.gradle not working. red underline but no linting errors

I have set up the standard flutter counter app in android studio. there are no linting errors however the app level build.gradle is underlined in red.

I am running android studio 3.5 latest stable build on windows 10.

I have tried reinstalling android studio.

UPDATE: Here is a screenshot of the error. There are no linting errors (fresh Flutter counter app project). But it is stuck on initializing gradle when building for android emulator: screenshot

My Android Studio Version is 3.4.1.

In my project, your GradleException is FileNotFoundException .

Try to change it.

About def localProperties = new Properties() , I think your should download something use SDK Manager.

Just like Android SDK Platform-Tools,Android SDK Build-Tools and so on.

Good Luck.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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