Daydream&Cardboard build fails on android-21

Fails packaging ‘Daydream & Cardboard’ app in 4.15.3, when min and target SDK versions are set to 21. Error messages:

[aapt] D:\github\memory\Intermediate\Android\APK\bin\AndroidManifest.xml:4: error: No resource identifier found for attribute ‘enableVrMode’ in package ‘android’

[aapt] D:\github\memory\Intermediate\Android\APK\bin\AndroidManifest.xml:4: error: No resource identifier found for attribute ‘resizeableActivity’ in package ‘android’

Looks like it is trying to use Android N features.
Cardboard-only build completes but crashes on device.

In 4.14.3 it was possible to build such configuration.

Hello diamond3,

I have a few questions for you that will help narrow down what issue it is that you are experiencing.

Quick questions:

  1. Can you reproduce this issue in a clean project?
  2. If so, could you provide a detailed list of steps to reproduce this issue on our end?
  3. Could you provide screen shots of any blueprints/settings that may be involved with this issue?
  4. What device are you currently trying to package/launch on to?
  5. Are you packaging or launching on?
  6. What is the current OS that is being run on the device?

Hello diamond3,

You will need to set the Android SDK Level to android-24 in the Android SDK project settings, but leave NDK level at android-21. Set your target SDK to 21, not 24. This will fix the compile error. Also make sure you install SDK Platform 24 with SDK Manager (only 19 and 21 are installed by default by Codework for Android). I hope that this information helps.

Make it a great day

Your suggestions didn’t work for me.
However, I managed to launch project on Android 7.1.1 device.

I am unclear after your last comment as to whether or not you still require assistance with this issue. If you still require help, could you go through and answer the questions from my previous post?

Well, I still can’t launch project on Android 6. Thus, I still need help or this is an issue of UE4.15. I won’t have additional info today but will update you as soon as I can.

My bad. Apparently, I messed with SDK versions at first. After reading your instructions more carefully, I managed to make a correct build which works on both Android 6 and 7. Thanks a lot!

For reference, here is my working configs: