Keep fit + RxJava (1)-configure in Android Studio, and configure fitrxjava
Add in build. gradle
// Add the plug-in statement required by external Lambda to apply plugin: 'Me. tatarka. compile Lambda '// compile Lambda's compilation Path depends on buildscript {dependencies {classpath' me. tatarka: gradle-role lambda: 3.1.0 '} // use Java 8 syntax to parse android {compileOptions {sourceCompatibility JavaVersion. VERSION_1_8 targetCompatibility JavaVersion. version_00008 }}// compile RxJavacompile 'IO. reactivex: rxjava: 1.0.14' // compile RxAndroidcompile 'io. reactivex: rxandroid: 1.0.1 '// compile fit and its related libraries, including Gsoncompile 'com. squareup. invalid fit: 2.0.0-beta2 'compute' com. squareup. conversion fit: converter-gson: 2.0.0-beta2 'compile 'com. squareup. invalid fit: adapter-rxjava: 2.0.0-beta2 'compile 'com. google. code. gson: 100'
Using the syntax features of Java 8, Lambda requires the configuration of Java 8.
After Java8 is installed, configure the Java8 path in File> Project structure> SDK Location.