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

Summary: Android Studio gradle project
Product: SDL Reporter: tower120
Component: buildAssignee: Sam Lantinga <slouken>
Status: RESOLVED DUPLICATE QA Contact: Sam Lantinga <slouken>
Severity: enhancement    
Priority: P2 CC: fnwinter, sylvain.becker, tower120
Version: 2.0.5   
Hardware: All   
OS: Android (All)   
Attachments: Android studio minimal project

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 ***