Keep fit + RxJava (1)-configure in Android Studio, and configure fitrxjava

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.