kohii | Android Video Playback | Android library
kandi X-RAY | kohii Summary
kandi X-RAY | kohii Summary
Android Video Playback made easy.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of kohii
kohii Key Features
kohii Examples and Code Snippets
Community Discussions
Trending Discussions on kohii
QUESTION
I do not understand what KotlinOptions is. I am using Kohii Library and this library tell me to add this KotlinOptions code in gradle file? But I am using Java as main language for my android studio project How can i config this code below?
...ANSWER
Answered 2020-Sep-01 at 19:18It seems Kohii uses Kotlin with JAVA8 features and you need to specify version of Java for Kotlin use in build.gradle. Even though your project is using Java as its primary language, the library you chose uses Kotlin. The good news is that Java and Kotlin are interoperable, the compiler just needs to be told how the Kotlin parts should be compiled.
kotlinOptions tells compiler different configurations for Kotlin. E.g:
jvmTarget = "1.8" (Java 8) - target version of the generated JVM bytecode (1.6, 1.8, 9, 10, 11 or 12), default is 1.6
freeCompilerArgs - A list of additional compiler arguments
All configuration parametrs and explanations can be found here
Put the configuration in build.gradle like this
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install kohii
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page