Java Question Use SLC to compile Exoplayer lib got error

dune3000

Member
Licensed User
Longtime User
I got the exoplayer source code from GitHub, and put all aar files to libs, when compiling it, got this error message:

Starting step: Compiling Java code.
javac 1.8.0_40
D:\SimpleLibraryCompiler\ExoPlayer\src\anywheresoftware\b4a\objects\SimpleExoPlayerViewWrapper.java:11: error: package com.google.android.exoplayer2 do not exist
import com.google.android.exoplayer2.SimpleExoPlayer;
^
What's wrong?
 

dune3000

Member
Licensed User
Longtime User
After the 3 step and recompiling, got new error message:

Starting step: Compiling Java code.
javac 1.8.0_40
D:\SimpleLibraryCompiler\ExoPlayer\src\anywheresoftware\b4a\objects\SimpleExoPlayerWrapper.java:21: error: can not found symbol
import com.google.android.exoplayer2.trackselection.AdaptiveVideoTrackSelection;

In empty B4A project I added these lines:
#AdditionalJar: exoplayer-core-r2.5.3.aar
#AdditionalJar: exoplayer-dash-r2.5.3.aar
#AdditionalJar: exoplayer-hls-r2.5.3.aar
#AdditionalJar: exoplayer-r2.5.3.aar
#AdditionalJar: exoplayer-smoothstreaming-r2.5.3.aar
#AdditionalJar: exoplayer-ui-r2.5.3.aar
#AdditionalJar: extension-rtmp-r2.5.3.aar
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…