<div dir="ltr">Hello everyone,<div><br></div><div>I just pushed a commit setting up gradle to build VLC for android.</div><div><br></div><div>I maintained compile.sh and Makefile, so the old build commands still work <b>for now</b>.</div><div>I still recommend you to switch to gradle, and the Android Studio.</div><div><br></div><div>But first, to be able to build, you have to fill the gradle.properties file in project root folder.</div><div>For example I set my debug key as release key to test release builds easily:</div><div><br></div><div>Here is my gradle.properties:</div><div><br></div><div><div>keyStoreFile=/home/dekans/.android/debug.keystore</div><div>storealias=androiddebugkey</div><div>storepwd=android</div></div><div><br></div><div><br></div><div>Just change your home directory, you must have the same setup for debug key.</div><div><br></div><div>Then, build VLC,</div><div>you can do it in CLI:</div><div>'<i>.gradlew installDebug</i>'</div><div><br></div><div>or '<i>./gradlew assembleDebug</i>' to only build, and don't install.</div><div><br></div><div>You can build all targets at once:</div><div>'<i>./gradlew assemble</i>'</div><div><br></div><div>check '<i>./gradlew tasks</i>' to see all available tasks.</div><div><br></div><div><br></div><div>You can also build from Android Studio, by clicking 'run'</div><div>On the bottom left of the IDE window there is a <i>build variants</i> button, I don't explain you what it's for...</div><div>Unfortunately, gradle in AS is not able to read environment variables, so be sure to set sdk.dir and ndk.dir in local.properties file if you want to build from Android Studio.</div><div><br></div><div>Targets are juste <i>release</i> and <i>debug</i> for now, I'll merge the Android TV code and make it a flavor, so we will also have an AndroidTV target available.</div></div>