add
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
in your build.gradle
file.
More Related Contents:
- How to create custom GsonConverter from following response?
- Retrofit 2: Get JSON from Response body
- Parse JSON array response using Retrofit & Gson
- Custom converter for Retrofit 2
- Retrofit2.0 gets MalformedJsonException while the json seems correct?
- Sending JSON in POST request with Retrofit2
- Multiple array json parsing under a object in android [closed]
- Set the JSON Data in TextView?
- How to send POST request in JSON using HTTPClient in Android?
- Building and running app via Gradle and Android Studio is slower than via Eclipse
- What does “Program type already present” mean?
- Gradle: Execution failed for task ‘:processDebugManifest’
- ERROR Android emulator gets killed
- Passing data from one activity to another using bundle – not displaying in second activity
- Android Studio – Importing external Library/Jar
- Integrate ZXing in Android Studio
- findFragmentById for SupportMapFragment returns null in Android Studio
- Which Android IDE is better – Android Studio or Eclipse? [closed]
- How to use the ProGuard in Android Studio?
- Error initializing ADB: Unable to create Debug Bridge: Unable to start ADB server
- Android device is not connected to USB for debugging (Android studio)
- Android studio 1.0.2 not building app:mergeDebugResources error
- Android Studio: Android Manifest doesn’t exists or has incorrect root tag
- Android studio: why are minSdkVersion and targetSdkVersion specified both in AndroidManifest.xml and build.gradle?
- Can someone provide an up-to-date Android guide for Google Drive REST API v3?
- Modifying contents of Android .aar file / Converting to and from .zip format
- How to push android project to github with this error is given below?
- how to run java and xml code (fetched from api) into another fragment
- How to get the build variant at runtime in Android Studio?
- Java.lang.ClassNotFoundException after Android studio update