android - Using butterknife for a library project with buildToolsVersion = '26.0.1' -


when use butterknife in library 9.0.0-snapshot getting error :

error:execution failed task ':app:transformclasseswithdexbuilderfordebug'. com.android.build.api.transform.transformexception: org.gradle.tooling.buildexception: com.android.dx.cf.code.simexception: invalid opcode ba (invokedynamic requires --min-sdk-version >= 26)

buildscript {     repositories {         jcenter()         google()         maven { url 'https://maven.fabric.io/public' }         maven { url "https://oss.sonatype.org/content/repositories/snapshots" }     }     dependencies {         classpath 'com.android.tools.build:gradle:3.0.0-beta4'         classpath "org.jfrog.buildinfo:build-info-extractor-gradle:3.1.1"         classpath "com.jakewharton:butterknife-gradle-plugin:9.0.0-snapshot"         classpath 'io.fabric.tools:gradle:1.+' //        classpath 'me.tatarka:gradle-retrolambda:3.7.0'         // note: not place application dependencies here; belong         // in individual module build.gradle files     } }  allprojects {     repositories {         jcenter()         maven { url "http://appboy.github.io/appboy-android-sdk/sdk" }         maven { url 'https://maven.fabric.io/public' }         maven { url "https://maven.google.com" }         maven { url "https://oss.sonatype.org/content/repositories/snapshots" }     } } 

if use plugin classpath 'me.tatarka:gradle-retrolambda:3.2.4' works fine. there way not use retrolambda plugin in built in java 8


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -