procedural-3d-engine/android
Philip Rideout c00ede2978 Fix Android build error.
The latest version of Android Studio fails with:

    Could not find com.android.tools.build:aapt2

To use AAPT2, we must now have a dependency on the `google()` repo
in both places in the root build.gradle file, as per:

    https://developer.android.com/studio/releases/#aapt2_gmaven
2019-02-04 10:55:59 -08:00
..
common/res/drawable Android gradle build files (triangle) 2018-04-29 12:28:43 +02:00
examples Added multiview and inlineuniformblocks sample to android build 2018-12-08 18:50:25 +01:00
gradle/wrapper Android gradle build files (triangle) 2018-04-29 12:28:43 +02:00
.gitignore Android gradle build files (triangle) 2018-04-29 12:28:43 +02:00
androidstudio01.jpg Updated android readme (using Android Studio) 2018-05-10 18:42:03 +02:00
androidstudio02.jpg Updated android readme (using Android Studio) 2018-05-10 18:42:03 +02:00
build.gradle Fix Android build error. 2019-02-04 10:55:59 -08:00
gradlew Android gradle build files (triangle) 2018-04-29 12:28:43 +02:00
gradlew.bat Android gradle build files (triangle) 2018-04-29 12:28:43 +02:00
README.md Android build instructions 2018-05-10 20:04:30 +02:00
settings.gradle Added multiview and inlineuniformblocks sample to android build 2018-12-08 18:50:25 +01:00

Vulkan examples on Android

Device support

  • To run these examples you need a device with an Android image that suports Vulkan
  • Builds currently only support arm-v7, other architectures may be added later
  • Basic gamepad support is available too (zoom and rotate)
  • Basic touch control support (zoom, move, rotate, look)

Building

Requirements

Update the asset pack

During the Android build process, assets are copied over from the data folder, so it's important to make sure that a current version of the asset pack has been downloaded and extracted.

Building the Examples

Select Import project from the welcome screen (or from inside Android via File->New):

Navigate to the android subfolder of this repository (should be higlighted with a gadle symbol):

Select OK to start the import.

Note: Initial import will take a while due to the number of examples.

Once the import is done, the samples can be build, debugged and run from inside Android Studio just like any other Android project.

Note: If you update the repository at a later point you may have to resync to have additional examples added to the Android Studio project (File->Sync Project with Gradle files).