What is the simplest way to mix Java+Scala in an Android project using Gradle ?
Is it using https://github.com/saturday06/gradle-android-scala-plugin ?
I am
Use Android studio 3.3.2 and create Android project.
Write this code in build.gradle file
buildscript {
repositories {
google()
jcenter()
maven { url 'https://jitpack.io' }
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.2'
classpath 'com.github.AllBus:gradle-android-scala-plugin:3.3.2'
}
}
and add app/build.gradle
apply plugin: "com.android.application"
apply plugin: "jp.leafytree.android-scala"
android {
compileSdkVersion 28
...
}
dependencies {
implementation "org.scala-lang:scala-library:2.11.12"
...
}