I hope next releases of Android Studio will be better and we could remove all this spike-nails from our project. Solution: to enable Retrolambda you need to disable Desugar.įinally the project can be compiled without problems. It means that retrolambda can be used with java8. If you’re experiencing issues related to the new support for Java 8 language features, you can disable it by adding the following to your gradle.properties file: Luckily for me, in the end of the documentation I found the note So it turns out that Google insists on getting rid of retrolambda, while java8 doesn’t work in my case. After an investigation I found confirmation of my theory. I supposed that java8 could be used only with API 24 , while my project supports API 16 . I got this error :ĭefault or static interface method used without - min-sdk-version >= 24 I tried removing retrolambda, but … surprise, surprise! it doesn’t work well. Migration guide says to remove retrolambda, because java8 compatible support is provided instead.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |