Unit test configuration broke in Android Studio 3.1

前端 未结 3 1333
遇见更好的自我
遇见更好的自我 2021-01-21 00:40

I updated to Android Studio 3.1 and as suggested by Android Studio also:

  • Updated the Android gradle plugin to 3.1.0 from 2.3.0 (also tried the new 3.1.1, the probl
3条回答
  •  生来不讨喜
    2021-01-21 01:22

    Solution from kekkou of the libgdx forums: http://www.badlogicgames.com/forum/viewtopic.php?f=11&t=27639&p=109249#p109249

    His solution is: Move the project(':android') {} block in root build.gradle into android\build.gradle.

    This makes all commands work again. I did not find any downsides.

    The commit for this fix on my project: https://github.com/Leejjon/BluffPoker/commit/d10deb090c2d80e641d733efdaa85f99c0a9fe2f

提交回复
热议问题