Android Studio не распознает макет во вкусе - PullRequest
1 голос
/ 19 июня 2020

После обновления до AS4 у меня начались очень странные проблемы с существующим проектом, который отлично работал в AS3.6.

См. Снимок экрана:

Android Studio 4 does not recognise layouts in flavour Just to avoid common overloading by common advices:

  • I tried to "Invalidate Caches & Restart"
  • I tried to "delete all ".idea" and ".gradle" and "build" folders and reimport the project (and subsequent "Invalidate Caches & Restart" again)
  • I checked the "Project Structure" dialog, after the (re-)import of the project from Gradle - the build variants, including flavours seem to be OK
  • I double checked all my dependencies are at the latest available version
  • I double checked my Gradle (6.1.1) and Android Gradle Plugin (4.0.0) are also at the latest version
  • I am on MAC, so no influence by the virus called Microshit Willows

Note: The project builds FINE and installs into the phone also FINE - the problem is only that the Android Studio 4 IDE appears to be buggy (again and again, Google probably does not have any validation of their products).

Note: According to the icon in the "Project" pane, it seems that AS does understand that "res" is a resource folder:

AS4, кажется, распознает папку res в аромате

Примечание : впоследствии некоторые функции в редакторе Java также не работают должным образом: R.layout. не распознается, идентификаторы просмотров в макете тоже не распознаются ...

Кто-нибудь знает, как выйти из этой безумной ситуации?

...