We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3510 - Android Studio gradle project
Summary: Android Studio gradle project
Status: RESOLVED DUPLICATE of bug 3195
Alias: None
Product: SDL
Classification: Unclassified
Component: build (show other bugs)
Version: 2.0.5
Hardware: All Android (All)
: P2 enhancement
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-07 20:28 UTC by tower120
Modified: 2017-10-23 22:27 UTC (History)
3 users (show)

See Also:


Attachments
Android studio minimal project (109.63 KB, application/zip)
2016-12-07 20:28 UTC, tower120
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tower120 2016-12-07 20:28:01 UTC
Created attachment 2648 [details]
Android studio minimal project

I saw that your current setup lacks Android studio project. Unfortunately Studio doesn’t export Eclipse project (from your setup) correctly.
  So... I attached Android Studio project (same as your android-project). Just unzip your SDL to app\src\main\cpp.

P.S. I was unable to make it work with cmake, so it is ndk-build based.
Comment 1 JJLee 2017-05-18 15:56:56 UTC
I had a same issue about android project.
Because ant build is now deprecated from android-studio.
so we should move the build system from ant to gradle.
now it's difficult to find sdk tool which includes ant build and build.xml.

I made similar patch for this issue.
please check this commit.
https://github.com/fnwinter/SDL/commit/4b3be9aa4131566e85919609d77d1bb303b049da

this commit includes the modification with androidbuild.sh.
the usage of the script is almost same before.
Comment 2 Sylvain 2017-09-12 16:21:10 UTC
Also a patch for gradle on bug 3195
Comment 3 Sam Lantinga 2017-10-23 22:27:00 UTC
There is more discussion in bug 3195, so I'm marking this a duplicate of that bug.

*** This bug has been marked as a duplicate of bug 3195 ***