From 0ede8b3796ae35cf786fab0a02aea32ae438313a Mon Sep 17 00:00:00 2001 From: Arun Raghavan Date: Mon, 2 Jan 2017 11:12:19 +0530 Subject: [PATCH] playback/player/android: Force externalNativeBuild before Java building This is needed so that we copy over the Java files from gst-android that include the GStreamer class which is used while compiling app. --- playback/player/android/app/build.gradle | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/playback/player/android/app/build.gradle b/playback/player/android/app/build.gradle index 15d0ad20c0..68bdd2d456 100644 --- a/playback/player/android/app/build.gradle +++ b/playback/player/android/app/build.gradle @@ -45,6 +45,11 @@ android { } } +afterEvaluate { + compileDebugJavaWithJavac.dependsOn 'externalNativeBuildDebug' + compileReleaseJavaWithJavac.dependsOn 'externalNativeBuildRelease' +} + dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) testCompile 'junit:junit:4.12'