typelead / gradle-eta

Gradle plugin for the Eta programming language
BSD 3-Clause "New" or "Revised" License
30 stars 7 forks source link

eta not working for Android #46

Open argideritzalpea opened 5 years ago

argideritzalpea commented 5 years ago

I am able to build at the top level with Gradle 5.4.1, however, when I add "apply plugin: 'eta-android'" to my app/build.gradle, I receive these errors:

Unable to find method 'com.android.build.gradle.internal.api.DefaultAndroidSourceSet.getDisplayName()Ljava/lang/String;'.
Possible causes for this unexpected error include:
Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)

Cause 1: org.gradle.api.GradleScriptException: A problem occurred evaluating project ':app'.
Caused by: java.lang.NoSuchMethodError: com.android.build.gradle.internal.api.DefaultAndroidSourceSet.getDisplayName()Ljava/lang/String;
Cause 2: java.lang.IllegalStateException: compileSdkVersion is not specified.

This issue was first recorded in https://github.com/typelead/gradle-eta/issues/43