Using Scala with Java in Android Studio

后端 未结 2 2348
鱼传尺愫
鱼传尺愫 2021-02-20 09:27

I installed the 1.5.2 Scala plugin in Android Studio 1.2.2. I have an existing (functioning) project coded in Java. I added a trivial class in Scala to replace an existing Jav

2条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-20 09:41

    when you follow @Renatol steps (which is great), you will encounter an error :

    Could not find matching constructor for: org.gradle.api.internal.tasks.DefaultScalaSourceSet(java.lang.String, org.gradle.api.internal.file.BaseDirFileResolver)
    

    so take a look at this answer to continue the process :

    gradle-android-scala-plugin gives "Could not find matching constructor" error

提交回复
热议问题