After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 784465 - android: Tutorials can't use 'android update project'
android: Tutorials can't use 'android update project'
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: documentation
git master
Other All
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
: 787006 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2017-07-03 07:16 UTC by Justin Kim
Modified: 2018-11-03 11:03 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
RFC: Use gradle for tutorial-1 (2.17 KB, patch)
2017-07-03 07:17 UTC, Justin Kim
none Details | Review
RFC: Use gradle for tutorial-1 (updated) (4.71 KB, patch)
2017-07-03 09:31 UTC, Justin Kim
none Details | Review
Build with gradle common snippets (11.98 KB, patch)
2017-07-11 03:18 UTC, Justin Kim
none Details | Review

Description Justin Kim 2017-07-03 07:16:22 UTC
In the recent Android SDK, the `android` command is deprecated and `and build` isn't supported anymore. Android recommands using gradle to build APK and even jni codes.
Comment 1 Justin Kim 2017-07-03 07:17:04 UTC
Created attachment 354816 [details] [review]
RFC: Use gradle for tutorial-1
Comment 2 Justin Kim 2017-07-03 07:25:56 UTC
Review of attachment 354816 [details] [review]:

To run this gradle script, GSTREAMER_ROOT_ANDROID must be set and PATH should include 'ndk-build'.
In addition, user must create 'local.properties' which has two variables 'ndk.dir' and sdk.dir' by manual on the top of a project directory.
Comment 3 Sebastian Dröge (slomo) 2017-07-03 07:49:01 UTC
Also check this one for a gradle based build system: https://cgit.freedesktop.org/gstreamer/gst-examples/tree/playback/player/android
Comment 4 Justin Kim 2017-07-03 08:01:52 UTC
Oh, I wish I had known it earlier.
I think it's better to close this issue.
Comment 5 Sebastian Dröge (slomo) 2017-07-03 08:04:22 UTC
No it's not :) The tutorials at https://cgit.freedesktop.org/gstreamer/gst-docs/tree/examples/tutorials should still be converted to gradle still
Comment 6 Justin Kim 2017-07-03 09:31:37 UTC
Created attachment 354827 [details] [review]
RFC: Use gradle for tutorial-1 (updated)
Comment 7 Justin Kim 2017-07-03 09:33:33 UTC
(In reply to Sebastian Dröge (slomo) from comment #5)
> No it's not :) The tutorials at
> https://cgit.freedesktop.org/gstreamer/gst-docs/tree/examples/tutorials
> should still be converted to gradle still

Thanks. 
I merged mine and gst-player's gradle. If this patch is acceptable, I'll do for the rest with same manner.
Comment 8 Arun Raghavan 2017-07-04 06:33:55 UTC
I think it's okay to push this out. Sooner, rather than later, I'd like us to have a way to share the common snippet for setting up our bits because otherwise every time we change this, there are too many places to update.
Comment 9 Justin Kim 2017-07-11 03:18:33 UTC
Created attachment 355308 [details] [review]
Build with gradle common snippets
Comment 10 Sebastian Dröge (slomo) 2017-08-30 08:30:00 UTC
*** Bug 787006 has been marked as a duplicate of this bug. ***
Comment 11 Arun Raghavan 2017-08-30 11:05:03 UTC
Thanks for this work, and sorry about the delayed response. Importing android-tutorial-1 into Android Studio, I get the following error:

Error:No resolved dependencies found when searching for the jacoco version.
FAILURE: Build failed with an exception.

* Where:
Script '/home/arun/code/gstreamer/gst-docs/examples/tutorials/android-gradle/android.gradle' line: 79

* What went wrong:
A problem occurred configuring root project 'android-tutorial-1'.
> Could not get unknown property 'compileReleaseJavaWithJavac' for root project 'android-tutorial-1' of type org.gradle.api.Project.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Comment 12 Justin Kim 2017-08-31 00:42:46 UTC
Oh, I haven't checked with Android Stdudio, I just did 'gradle build'.
I'll take a look.
Comment 13 Justin Kim 2017-08-31 03:28:08 UTC
Arun, I think we are running in different environments.
I ran this build in MacOS and it was built successfully. See the log below link.
https://gist.github.com/justinjoy/40d57d463152f240462c6f98305032f3

I installed Android Studio 2.3.3 today again. and I did only to let it know PATH environment variable of mine.
Comment 14 GStreamer system administrator 2018-11-03 11:03:37 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-docs/issues/8.