HamidrezaAmz / MagicalExoPlayer

The Easiest Way To Play/Stream Video And Audio Using Google ExoPlayer In Your Android Application
MIT License
345 stars 77 forks source link

Error inflating class com.potyvideo.library.AndExoPlayerView #38

Closed SurajC23 closed 3 years ago

SurajC23 commented 4 years ago

I want to use AndExoPlayerView but every time i get this error

Prachidighe commented 4 years ago

Have you added "compileOptions" in your app Gradle file?

Abrar-ul-haq-Abro commented 4 years ago

Have you added "compileOptions" in your app Gradle file?

how to add compile options.....which option to add....and where

Abrar-ul-haq-Abro commented 4 years ago

Solved.... thanks prachidghe..... added compile options.... for those having same problem add below code in build.gradle app file.... compileOptions { sourceCompatibility = '1.8' targetCompatibility = '1.8' }