Android demo project migration

21 views
Skip to first unread message

Philippe Simons

unread,
Sep 18, 2014, 11:29:50 AM9/18/14
to orx...@googlegroups.com
Hi guys,

I've just finished to migrate the andoid (non-native) demo project to Gradle / Android Studio.

Project structure is different but it's more flexible for complex project (cf Android Gradle Plugin http://tools.android.com/tech-docs/new-build-system/user-guide).

basically, everything is in app/src/main and C/C++ files are in app/src/jni

you can either build the project from command-line.
1) build jni stuff (goto app/src folder and call ndk-build)
2) install apk (goto root project folder and call ./gradlew installRelease)

or you can import the project in Android Studio (don't directly Open the project, select Import)

If you need help to migrate your existing projects, don't hesitate to ask here or in the forum.

Philippe

iar...@orx-project.org

unread,
Sep 18, 2014, 11:32:54 AM9/18/14
to orx...@googlegroups.com
Nice.

So if I'm understanding correctly the end, does it mean one can
compile everything from within Android Studio (including the ndk-build
step)?

So far I was doing things with 2 steps:
1 - call ndk-build from command line
2 - generate/deploy the apk using Android Studio

Cheers,

Rom
> --
> You received this message because you are subscribed to the Google Groups
> "orx-dev" group.
> To post to this group, send email to orx...@googlegroups.com.
> Visit this group at http://groups.google.com/group/orx-dev.

Philippe Simons

unread,
Sep 18, 2014, 11:35:18 AM9/18/14
to orx...@googlegroups.com

No currently you still need to call ndk-build from command line in app/src folder.

Philippe Simons

Reply all
Reply to author
Forward
0 new messages