Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
trandana's avatar
trandana
Explorer
2 years ago

Oculus always says the Android SDK version is wrong during validation

When uploading my app to Oculus, I receive this message:

ERROR:

Android Target SDK version is 29, but should be 32 or greater (targetSdkVersion in AndroidManifest.xml).

But I am on SDK 32, in fact its the only SDK I have installed.

my gradle.properties:

my AndroidManifest.xml:

In Unreal, I am targetting SDK 32,

and during the build process, it specifically states I am using SDK 32:


Is this a bug on the Oculus side?

Side loading the app works fine. but can't upload

2 Replies

Replies have been turned off for this discussion
    • trandana's avatar
      trandana
      Explorer

      We fixed our issue. The issue we had in our case was we had Firebase Crashyltics enabled, which forced our sdk to use 29. We had to bump that up to 32 also inside the Firebase Android.xml file inside our project.

      android {
      compileSdkVersion 32
      defaultConfig {
      targetSdkVersion 32
      minSdkVersion 29
      }
      compileOptions {
      sourceCompatibility JavaVersion.VERSION_1_8
      targetCompatibility JavaVersion.VERSION_1_8
      }
      buildTypes {
      release {
      firebaseCrashlytics {
      nativeSymbolUploadEnabled true
      unstrippedNativeLibsDir 'src/main/jniLibs'
      }
      }
      debug {
      firebaseCrashlytics {
      nativeSymbolUploadEnabled false
      unstrippedNativeLibsDir 'src/main/jniLibs'
      }
      }
      }
      }