# WARNING:R8: An API level of 34 is not supported by this compiler. Please use an API level of 33 or earlier (App must target Android 14 (API level 34) or higher)

**URL:** <https://forums.unrealengine.com/t/warning-an-api-level-of-34-is-not-supported-by-this-compiler-please-use-an-api-level-of-33-or-earlier-app-must-target-android-14-api-level-34-or-higher/1940453>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [July 17, 2024, 9:35am UTC](https://forums.unrealengine.com/t/warning-an-api-level-of-34-is-not-supported-by-this-compiler-please-use-an-api-level-of-33-or-earlier-app-must-target-android-14-api-level-34-or-higher/1940453 "2024-07-17T09:35:12Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Skyboy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Skyboy](https://forums.unrealengine.com/u/Skyboy)\
**Post date:** [July 17, 2024, 9:35am UTC](https://forums.unrealengine.com/t/warning-an-api-level-of-34-is-not-supported-by-this-compiler-please-use-an-api-level-of-33-or-earlier-app-must-target-android-14-api-level-34-or-higher/1940453/1 "2024-07-17T09:35:12Z")

</div>

Hey there,

Google: App must target Android 14 (API level 34) or higher

Unreal: WARNING:R8: An API level of 34 is not supported by this compiler. Please use an API level of 33 or earlier

I’m not entirely sure where to go from here, is there a way to update the compiler?

edit:  
For reference Project settings  
Mini sdk version 34 (To hit the target)  
target sdk is 35

---

<div class="post-metadata">

**Author:** ![ITGuy327](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/itguy327/32/959102_2.png) [@ITGuy327](https://forums.unrealengine.com/u/ITGuy327)\
**Post date:** [July 17, 2024, 8:53pm UTC](https://forums.unrealengine.com/t/warning-an-api-level-of-34-is-not-supported-by-this-compiler-please-use-an-api-level-of-33-or-earlier-app-must-target-android-14-api-level-34-or-higher/1940453/2 "2024-07-17T20:53:20Z")

</div>

Just got hit with this too

---

<div class="post-metadata">

**Author:** ![Skyboy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Skyboy](https://forums.unrealengine.com/u/Skyboy)\
**Post date:** [July 18, 2024, 10:04am UTC](https://forums.unrealengine.com/t/warning-an-api-level-of-34-is-not-supported-by-this-compiler-please-use-an-api-level-of-33-or-earlier-app-must-target-android-14-api-level-34-or-higher/1940453/3 "2024-07-18T10:04:38Z")

</div>

Welcome back after 10 years :), I’ve been trying to figure this out for nearly 15 days, and I’m totally lost. The warning says we’ve got 45 days left, or something. So something needs an update lol.

---

<div class="post-metadata">

**Author:** ![VMukesh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VMukesh](https://forums.unrealengine.com/u/VMukesh)\
**Post date:** [July 18, 2024, 1:20pm UTC](https://forums.unrealengine.com/t/warning-an-api-level-of-34-is-not-supported-by-this-compiler-please-use-an-api-level-of-33-or-earlier-app-must-target-android-14-api-level-34-or-higher/1940453/4 "2024-07-18T13:20:22Z")

</div>

same issue, app just crashes in android 14 and all my native sharing code is broke  
and not able to access files now

---

<div class="post-metadata">

**Author:** ![Skyboy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Skyboy](https://forums.unrealengine.com/u/Skyboy)\
**Post date:** [July 19, 2024, 10:07am UTC](https://forums.unrealengine.com/t/warning-an-api-level-of-34-is-not-supported-by-this-compiler-please-use-an-api-level-of-33-or-earlier-app-must-target-android-14-api-level-34-or-higher/1940453/5 "2024-07-19T10:07:48Z")

</div>

> [@VMukesh](#):
>
> same issue, app just crashes in android 14 and all my native sharing code is broke

Dam that’s rough.

Assumably unreal know about this? What happens when the timer runs out, do we just get kicked off google? Do apps get taken down? Itd of though this would be getting a lot more focus, it seems pretty major.

---

<div class="post-metadata">

**Author:** ![Skyboy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Skyboy](https://forums.unrealengine.com/u/Skyboy)\
**Post date:** [July 20, 2024, 11:00am UTC](https://forums.unrealengine.com/t/warning-an-api-level-of-34-is-not-supported-by-this-compiler-please-use-an-api-level-of-33-or-earlier-app-must-target-android-14-api-level-34-or-higher/1940453/6 "2024-07-20T11:00:29Z")

</div>

Does anyone know a place to report stuff like this? It seems quite breaking.

---

<div class="post-metadata">

**Author:** ![VMukesh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VMukesh](https://forums.unrealengine.com/u/VMukesh)\
**Post date:** [July 22, 2024, 1:45pm UTC](https://forums.unrealengine.com/t/warning-an-api-level-of-34-is-not-supported-by-this-compiler-please-use-an-api-level-of-33-or-earlier-app-must-target-android-14-api-level-34-or-higher/1940453/7 "2024-07-22T13:45:55Z")

</div>

no idea, tried with blank project too, just for confirmation,  
Crashes in blanck project too

---

<div class="post-metadata">

**Author:** ![LuizGaming](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/luizgaming/32/755162_2.png) [@LuizGaming](https://forums.unrealengine.com/u/LuizGaming)\
**Post date:** [July 23, 2024, 7:43pm UTC](https://forums.unrealengine.com/t/warning-an-api-level-of-34-is-not-supported-by-this-compiler-please-use-an-api-level-of-33-or-earlier-app-must-target-android-14-api-level-34-or-higher/1940453/8 "2024-07-23T19:43:12Z")

</div>

Same problem ☹

---

<div class="post-metadata">

**Author:** ![Skyboy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Skyboy](https://forums.unrealengine.com/u/Skyboy)\
**Post date:** [July 24, 2024, 1:27pm UTC](https://forums.unrealengine.com/t/warning-an-api-level-of-34-is-not-supported-by-this-compiler-please-use-an-api-level-of-33-or-earlier-app-must-target-android-14-api-level-34-or-higher/1940453/9 "2024-07-24T13:27:42Z")

</div>

I’ve got a post up on Reddit too, but It all seems to be going to nowt. Unfortunately, at the moment, I’m nowhere near skilled enough to work this out.

I guess I’ll just bump this occasionally. I can’t really think what else to do.

---

<div class="post-metadata">

**Author:** ![Skyboy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Skyboy](https://forums.unrealengine.com/u/Skyboy)\
**Post date:** [July 29, 2024, 9:16am UTC](https://forums.unrealengine.com/t/warning-an-api-level-of-34-is-not-supported-by-this-compiler-please-use-an-api-level-of-33-or-earlier-app-must-target-android-14-api-level-34-or-higher/1940453/10 "2024-07-29T09:16:19Z")

</div>

OK so After continually diving through.

I’ve since updated to 5.4.3, I didn’t get prompted for it. I had to actually go to library and click run and it updated. The shortcut didn’t cut it.

Second, I decided to go through and uninstall anything I wasn’t directly using in android studio.

Weirdly, after booting unreal it asks to install an sdk.

 ![UInreal](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/0/c/10c4af072abf6e9ef70dcf4a36d76724e8888e48.png)

Fair enough. But the allowed sdk versions are r25b through r26c  
It installed r25b automatically and reinstalled the sdk: android 13 (tiramisu) which is api 33, equally it installed ndk 25.

So it’s ignoring my sdk 34/35 that are installed, and it’s ignoring ndk 27

That’s where I’m at now. I’m going to try and get it to install r26c instead.~

Update:

Also interestingly In the build folder- project.properties the project target is android-19

update 2:

Visual studio 2019 had some pretty major updates. Not sure if its related. but updating that too.

---

<div class="post-metadata">

**Author:** ![Skyboy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Skyboy](https://forums.unrealengine.com/u/Skyboy)\
**Post date:** [July 29, 2024, 10:00am UTC](https://forums.unrealengine.com/t/warning-an-api-level-of-34-is-not-supported-by-this-compiler-please-use-an-api-level-of-33-or-earlier-app-must-target-android-14-api-level-34-or-higher/1940453/11 "2024-07-29T10:00:39Z")

</div>

Right so progress has been made.

I noticed above it said AutoSdk: which assumably means I can manually designate too.

I went into system/advanaced and then enviromental and changed my ndk root from 25 to 27.

I went into unreal and designated the location of the folder from blank, directly to 27.

My sdk version now says r27 instead of r25b.

Which I think is a win…Maybe.

It failed with this error  
Platform Android is not a valid platform to build. Check that the SDK is installed properly and that you have the necessary platorm support files.

When I click update it says successful but doesn’t fix it.

ndroid: (Status=Invalid, MinAllowed\_Sdk=r25b, MaxAllowed\_Sdk=r26c, Current\_Sdk=r27, Allowed\_AutoSdk=r25b, Current\_AutoSdk=, Flags=“InstalledSdk\_InvalidVersionExists, Platform\_ValidHostPrerequisites, Support\_FullSdk”)  
UATHelper: Packaging (Android (ASTC)): Will install ‘Android SDK r25b’  
UATHelper: Packaging (Android (ASTC)): ----------------------------------------------  
UATHelper: Packaging (Android (ASTC)): Running ‘D:\Epic\UE\_5.4\Engine/Extras/Android/SetupAndroid.bat android-33 33.0.1 3.22.1 25.1.8937393 -noninteractive’

Throws this error which is interesting, The max allowed is r26c so understandable.  
Its still trying to force an old api.

The plan now:

Im kind of starting from the beginning.  
Im installing the visual studio 22 and uninstalling 2019.

Following this [guide](https://www.youtube.com/watch?v=8xJRr6Yr_LU)

Then Im going to go through android studio and java to make sure everything is as updated as it can be.

---

<div class="post-metadata">

**Author:** ![Skyboy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Skyboy](https://forums.unrealengine.com/u/Skyboy)\
**Post date:** [July 29, 2024, 1:16pm UTC](https://forums.unrealengine.com/t/warning-an-api-level-of-34-is-not-supported-by-this-compiler-please-use-an-api-level-of-33-or-earlier-app-must-target-android-14-api-level-34-or-higher/1940453/12 "2024-07-29T13:16:54Z")

</div>

Alrightttt.

So after

-updating to visual 2022 and uninstalling 2019. Making sure to include the extras in the guide.  
-updating to 5.4.3 using launch instead of shortcut.  
-using the max allowed ndk for 5.4.3 which is currently 26.2.11394342 (r26c) in android studio.  
-I also set my root ndk in enviromental to the same ndk as above.  
-Manually directing the location to said ndk.

I end up with this error 😆

WARNING:R8: An API level of 34 is not supported by this compiler. Please use an API level of 33 or earlier

sigh…

But I also got a new error wooo hooo 🤣

WARNING:We recommend using a newer Android Gradle plugin to use compileSdk = 34  
This Android Gradle plugin (7.4.2) was tested up to compileSdk = 33  
This warning can be suppressed by adding  
android.suppressUnsupportedCompileSdk=34  
to this project’s gradle.properties  
The build will continue, but you are strongly encouraged to update your project to  
use a newer Android Gradle Plugin that has been tested with compileSdk = 34

Ok now Im getting somewhere…now how do you upgrade an android gradle plugin lol.

 ![Unreal](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/9/9/f99d932a77750ea88b71d1bcb76e5a9187128f73.jpeg)

and boom there we have it. Thats assumably why.

Flamingo only goes to 33. I need to update to hedgehog as a minimum, but Im going to go for koala just because. (Android studio version).

---

<div class="post-metadata">

**Author:** ![ThreeTreeDog](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/threetreedog/32/88709_2.png) [@ThreeTreeDog](https://forums.unrealengine.com/u/ThreeTreeDog)\
**Post date:** [July 30, 2024, 2:35am UTC](https://forums.unrealengine.com/t/warning-an-api-level-of-34-is-not-supported-by-this-compiler-please-use-an-api-level-of-33-or-earlier-app-must-target-android-14-api-level-34-or-higher/1940453/13 "2024-07-30T02:35:40Z")

</div>

Banging the same drum… did you get it to compile?  
I have just started with android dev… threw together a game got google stuff all setup… upload a package to begin their month long testing process… and got informed Ill have to get it done and pushed in 30 days… ughh

Five years… five years and I decided to put the large projects on hold long enough to build a few free android games to get some revenue streams built to fund my other projects… it just never ends, why is it so hard to make a f $1…

---

<div class="post-metadata">

**Author:** ![Skyboy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Skyboy](https://forums.unrealengine.com/u/Skyboy)\
**Post date:** [July 31, 2024, 12:30pm UTC](https://forums.unrealengine.com/t/warning-an-api-level-of-34-is-not-supported-by-this-compiler-please-use-an-api-level-of-33-or-earlier-app-must-target-android-14-api-level-34-or-higher/1940453/14 "2024-07-31T12:30:39Z")

</div>

No I got some help, but it pointed towards this link which is equally outdated using flamingo…  
[link to ue5 doc](https://dev.epicgames.com/documentation/en-us/unreal-engine/android-support-for-unreal-engine)

Yeah Its pretty tiresome. I always wondered why everyone doesnt just make an app and release it to make some squids. I guess this is why, you need a phd just to upgrade API.

On the documentation page it stats this  
“Different stores have their own target SDK minimum requirements, which may differ from that mentioned above.”  
Which is a super fun way to say, hey google doesn’t want this, so figure it out.

---

<div class="post-metadata">

**Author:** ![Skyboy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Skyboy](https://forums.unrealengine.com/u/Skyboy)\
**Post date:** [July 31, 2024, 1:28pm UTC](https://forums.unrealengine.com/t/warning-an-api-level-of-34-is-not-supported-by-this-compiler-please-use-an-api-level-of-33-or-earlier-app-must-target-android-14-api-level-34-or-higher/1940453/15 "2024-07-31T13:28:06Z")

</div>

Ok Ive just Reuploaded a production version that seems to hit 34+  
Heres how I did it. (It still gets the warnings. Like…a lot of them, as posted above.)

I updated my Visual Studio following this guide. [Link](https://www.youtube.com/watch?v=8xJRr6Yr_LU)

- Unreal was updated using its library launch instead of shortcut to update to 5.4.3.

- Android studio was updated to the latest version of koala.  
Using the max allowed NDK for 5.4.3 which is currently 26.2.11394342 (r26c) in android studio NDK section.

- I also set my root NDK in environmental to the same NDK as above.

- I went into build.gradle and wrapper found here  
(Your drive)\UE\_5.4\Engine\Build\Android\Java\gradle  
In build.gradle to 8.5.1  
and  
(Your drive)\UE\_5.4\Engine\Build\Android\Java\gradle\gradle\wrapper  
In gradle-wrapper changing for 8.7

- Inside unreal, I set Both SDK and NDK to latest  
Directed only the NDK to the location above.

- And then mini and target sdk is both 34

It does say 34+ instead of 33+ In google console…But I guess we gotta wait to see after its published.

Update:  
A big sigh… and a long lean back in the chair required.

Update 2: It has been accepted and this is finally solved.

 ![UInreal](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/4/5/845c8d747f705f0c969e59423c4f9de80f08264e.png)

---

<div class="post-metadata">

**Author:** ![ThreeTreeDog](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/threetreedog/32/88709_2.png) [@ThreeTreeDog](https://forums.unrealengine.com/u/ThreeTreeDog)\
**Post date:** [August 1, 2024, 11:06pm UTC](https://forums.unrealengine.com/t/warning-an-api-level-of-34-is-not-supported-by-this-compiler-please-use-an-api-level-of-33-or-earlier-app-must-target-android-14-api-level-34-or-higher/1940453/16 "2024-08-01T23:06:09Z")

</div>

Ha ha glad you got it setup… cross fingers everything works… I bought plugins (as they provide LTS for updates to any future library changes) but there was actually a store bug that prevented me from installing to 5.4, while waiting for a reply on their discord i did a 5.5 source build \*thought i was doing a 5.4, good news is they are aware of the issues and have implemented the necessary updates, turnkey now goes to r27, I was actually able to do a shipping build after a while trying different sdk/ndk/jdk targets but when uploading to the store it seemed the key didn’t get compiled (it was still using gradle 7.5, may be the issue) idk… but now the store bug is fixed so im back in the editor 5.4 version btw (it was using jdk20/ndk 27/android 35

---

<div class="post-metadata">

**Author:** ![ThreeTreeDog](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/threetreedog/32/88709_2.png) [@ThreeTreeDog](https://forums.unrealengine.com/u/ThreeTreeDog)\
**Post date:** [August 1, 2024, 11:12pm UTC](https://forums.unrealengine.com/t/warning-an-api-level-of-34-is-not-supported-by-this-compiler-please-use-an-api-level-of-33-or-earlier-app-must-target-android-14-api-level-34-or-higher/1940453/17 "2024-08-01T23:12:53Z")

</div>

With those settings you are able to support \<34? I used 34 sdk and couldn’t run it on my 33 so i reverted to the 25.1.xxx ndk

---

<div class="post-metadata">

**Author:** ![ThreeTreeDog](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/threetreedog/32/88709_2.png) [@ThreeTreeDog](https://forums.unrealengine.com/u/ThreeTreeDog)\
**Post date:** [August 1, 2024, 11:52pm UTC](https://forums.unrealengine.com/t/warning-an-api-level-of-34-is-not-supported-by-this-compiler-please-use-an-api-level-of-33-or-earlier-app-must-target-android-14-api-level-34-or-higher/1940453/18 "2024-08-01T23:52:35Z")

</div>

> [@Skyboy](#):
>
> It does say 34+ instead of 33+ In google console…But I guess we gotta wait to see after its published.

compatible devices list 970ish? , means no support for sub 34 devices

---

<div class="post-metadata">

**Author:** ![Skyboy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Skyboy](https://forums.unrealengine.com/u/Skyboy)\
**Post date:** [August 2, 2024, 11:49am UTC](https://forums.unrealengine.com/t/warning-an-api-level-of-34-is-not-supported-by-this-compiler-please-use-an-api-level-of-33-or-earlier-app-must-target-android-14-api-level-34-or-higher/1940453/19 "2024-08-02T11:49:03Z")

</div>

Yeah, these settings got me to 34+ according to google console. But It still throws yellow errors in the log when it compiles saying that it only goes to 33 and update the compiler etc. (The exact errors are above.

I couldn’t exactly tell you why these settings work, as I have very minimal understanding of gradle things itself, Lol it’s been quite the learning curve to even find the file itself.

And yeah, about 970 devices sounds about right. I don’t exactly understand how they work this stuff out or what it bans. But It basically said I couldn’t do any further updates unless I updated it.  
Assumably it means it wouldn’t work on anything less than 34.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [September 1, 2024, 11:49am UTC](https://forums.unrealengine.com/t/warning-an-api-level-of-34-is-not-supported-by-this-compiler-please-use-an-api-level-of-33-or-earlier-app-must-target-android-14-api-level-34-or-higher/1940453/20 "2024-09-01T11:49:30Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
