Lambda configured in the operating environment in AndroidStudio

Recently introduced in the blog the Lambda relevant knowledge, content presentation is based on the Java environment, but I introduce the knowledge but also for
use in Android development process, so ready to use it to develop a program in AndroidStudio in, did not think necessarily compilation errors .
My version is already JDK 1.8 version, how will compile error, besides the normal way to run Java environment. I would like to acknowledge Gradle related configuration problems, leading to a compilation error. Through the search finally found the reason: maven configuration error.

Mainly reference this blog , configuration maven.
Its difference is that I still use AndroidStudio comes with JDK environment, and the need to restart after configuration is complete it,
otherwise it will report a compile error parameter mismatch. In addition, my AndroidStudio version 3.2, which comes with the JDK version 1.8.

This is summed simple troubleshooting, in order to do future reference when updating the environment.

Published 520 original articles · won praise 131 · views 620 000 +

Guess you like

Origin blog.csdn.net/talk_8/article/details/104887281