Android Studio: Testing: Library dependencies that have been compiled using java 8 or above

后端 未结 2 1127
你的背包
你的背包 2021-01-19 16:56

please help. I am having a really horrible time with setting up my testing for android studio.

I have downloaded the calculator example to practice cumcumber code t

2条回答
  •  梦毁少年i
    2021-01-19 17:29

    You have a dependency, unclear which, that is compiled for Java 8 and you have specified Java 7 in your build.

    The error message This is caused by library dependencies that have been compiled using Java 8 or above. is they key here.

    My approach would be to change the Java version to 8. If that didn't do the trick, reduce the problem. That is, start with a new project without dependencies, and code, and add very small parts until I found what caused to error above.

    That is, apply Galls Law:

    "A complex system that works is invariably found to have evolved from a simple system that worked. A complex system designed from scratch never works and cannot be patched up to make it work. You have to start over with a working simple system. – John Gall (1975, p.71)"

    https://en.wikipedia.org/wiki/John_Gall_%28author%29

提交回复
热议问题