3rd-party Gradle plug-ins may be the cause

后端 未结 17 861
悲哀的现实
悲哀的现实 2020-12-07 12:00

After updating to Android Studio 3.1 I got this error message:

The project works fine and this is mostly just a warning, so my question is what\'s the meani

17条回答
  •  悲哀的现实
    2020-12-07 12:32

    I restarted Android Studio and the problem disappeared.

    Click File -> Invalidate Caches/Restart

    Every time I change the gradle file, I must restart Android Studio to or the problem returns.

    You can also try this:

    1. Re-ordered repositories to:

      mavenCentral()
      maven { url 'https://jitpack.io' }
      google()
      jcenter()
      
    2. Clearing this folder: user's ~/.gradle/caches and deleting app build folder manually, then clean and rebuild.

提交回复
热议问题