# Android 14 (API Level 34)

**URL:** <https://forums.solar2d.com/t/android-14-api-level-34/356635>\
**Category:** Android\
**Created:** [July 4, 2024, 5:04pm UTC](https://forums.solar2d.com/t/android-14-api-level-34/356635 "2024-07-04T17:04:29Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![Kao14](https://forums.solar2d.com/user_avatar/forums.solar2d.com/kao14/32/1339_2.png) [@Kao14](https://forums.solar2d.com/u/Kao14)\
**Post date:** [July 10, 2024, 5:34pm UTC](https://forums.solar2d.com/t/android-14-api-level-34/356635/21 "2024-07-10T17:34:35Z")

</div>

Try only the target SDK Version:  
@ [jdsmedeirosbr](https://forums.solar2d.com/u/jdsmedeirosbr)

**targetSdkVersion** = “34”

```auto
settings = {
    orientation = {
        default = "portrait",
        supported = { "portrait", "portraitUpsideDown" }
    },
    android = {
        targetSdkVersion = "34",
        usesPermissions = {
            "android.permission.INTERNET",
        },
    },
}

```

understand.Then I would advise you to set up a native build process if you haven’t tried it yet. The build process works fine.

Try:

> **[Solar2D Documentation — Solar2D Native](https://docs.coronalabs.com/native/index.html#android)**
>
> Solar2D lets you build games/apps for all major platforms including iOS, Android, Kindle, Apple TV, Android TV, macOS, and Windows. Get the free toolset!

Then you can change it in the _ **build.gradle** _ file:  
 ![image](https://forums.solar2d.com/uploads/default/original/2X/0/039f29b784ce0faa2ffe474b0dcf989932b180bd.png)

Do you use any Plugins?

---

<div class="post-metadata">

**Author:** ![hcrabb](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/h/dec6dc/32.png) [@hcrabb](https://forums.solar2d.com/u/hcrabb)\
**Post date:** [July 10, 2024, 5:59pm UTC](https://forums.solar2d.com/t/android-14-api-level-34/356635/22 "2024-07-10T17:59:14Z")

</div>

Yes please update Solar2D to utilize API level 34! This is much needed.

I’m not sure if it’s possible, but it would also super helpful to begin working on support for API level 35, so this doesn’t have to be a last minute change each time.

Thank you!

---

<div class="post-metadata">

**Author:** ![Kao14](https://forums.solar2d.com/user_avatar/forums.solar2d.com/kao14/32/1339_2.png) [@Kao14](https://forums.solar2d.com/u/Kao14)\
**Post date:** [July 10, 2024, 6:14pm UTC](https://forums.solar2d.com/t/android-14-api-level-34/356635/23 "2024-07-10T18:14:53Z")

</div>

Yes, I understand, someone would have to make an update in the Solar2D version:

> <https://github.com/coronalabs/corona/commit/f12fb5748dc1fe3f98610101be4647be4f3eabf8>

@vlads or @Scott_Harrison …

---

<div class="post-metadata">

**Author:** ![Scott\_Harrison](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/s/65b543/32.png) [@Scott\_Harrison](https://forums.solar2d.com/u/Scott_Harrison)\
**Post date:** [July 11, 2024, 9:58pm UTC](https://forums.solar2d.com/t/android-14-api-level-34/356635/24 "2024-07-11T21:58:16Z")

</div>

Will look into this

---

<div class="post-metadata">

**Author:** ![chris\_raz](https://forums.solar2d.com/user_avatar/forums.solar2d.com/chris_raz/32/3527_2.png) [@chris\_raz](https://forums.solar2d.com/u/chris_raz)\
**Post date:** [July 17, 2024, 11:06pm UTC](https://forums.solar2d.com/t/android-14-api-level-34/356635/25 "2024-07-17T23:06:32Z")

</div>

Any updates on this? hoping to get this as soon as possible as i recall last year crashes and anrs were an issue with updating the api 33 and would like to get some tests out before deadlines to make sure all is functioning as it should be.

---

<div class="post-metadata">

**Author:** ![Scott\_Harrison](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/s/65b543/32.png) [@Scott\_Harrison](https://forums.solar2d.com/u/Scott_Harrison)\
**Post date:** [July 18, 2024, 12:12am UTC](https://forums.solar2d.com/t/android-14-api-level-34/356635/26 "2024-07-18T00:12:58Z")

</div>

I made version that supports target 34

> **[Release Solar2D 2024.3825 · scottrules44/Solar2D-98](https://github.com/scottrules44/Solar2D-98/releases/tag/3825)**
>
> Changes since previous build:
> 
> 
> Increase Target SDK to 34 (05879e4)
> For linux it is recommended to use snap:
> sudo snap install solar2d

---

<div class="post-metadata">

**Author:** ![chris\_raz](https://forums.solar2d.com/user_avatar/forums.solar2d.com/chris_raz/32/3527_2.png) [@chris\_raz](https://forums.solar2d.com/u/chris_raz)\
**Post date:** [July 18, 2024, 1:06am UTC](https://forums.solar2d.com/t/android-14-api-level-34/356635/27 "2024-07-18T01:06:05Z")

</div>

Legend! Thanks @Scott_Harrison

---

<div class="post-metadata">

**Author:** ![jdsmedeirosbr](https://forums.solar2d.com/user_avatar/forums.solar2d.com/jdsmedeirosbr/32/114_2.png) [@jdsmedeirosbr](https://forums.solar2d.com/u/jdsmedeirosbr)\
**Post date:** [July 18, 2024, 12:50pm UTC](https://forums.solar2d.com/t/android-14-api-level-34/356635/28 "2024-07-18T12:50:23Z")

</div>

**Error 256:**

Execution failed for task ‘:App:desugarReleaseFileDependencies’.

> A failure occurred while executing com.android.build.gradle.internal.tasks.DexFileDependenciesTask$DexFileDependenciesWorkerAction  
> Error while dexing.

---

<div class="post-metadata">

**Author:** ![greenolor](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/g/b3f665/32.png) [@greenolor](https://forums.solar2d.com/u/greenolor)\
**Post date:** [July 18, 2024, 5:27pm UTC](https://forums.solar2d.com/t/android-14-api-level-34/356635/29 "2024-07-18T17:27:17Z")

</div>

I have a similar error

```auto
FAILURE: Build failed with an exception.
 * What went wrong:
Execution failed for task ':App:desugarReleaseFileDependencies'.
 > A failure occurred while executing com.android.build.gradle.internal.tasks.DexFileDependenciesTask$DexFileDependenciesWorkerAction
> Error while dexing.

```

---

<div class="post-metadata">

**Author:** ![Kan98](https://forums.solar2d.com/user_avatar/forums.solar2d.com/kan98/32/2224_2.png) [@Kan98](https://forums.solar2d.com/u/Kan98)\
**Post date:** [July 19, 2024, 7:05am UTC](https://forums.solar2d.com/t/android-14-api-level-34/356635/30 "2024-07-19T07:05:23Z")

</div>

+1 me too.

---

<div class="post-metadata">

**Author:** ![colinmorgan](https://forums.solar2d.com/user_avatar/forums.solar2d.com/colinmorgan/32/241_2.png) [@colinmorgan](https://forums.solar2d.com/u/colinmorgan)\
**Post date:** [July 19, 2024, 3:36pm UTC](https://forums.solar2d.com/t/android-14-api-level-34/356635/31 "2024-07-19T15:36:46Z")

</div>

I just chatted with Vlad. He and Scott are continuing to work on the issue.

---

<div class="post-metadata">

**Author:** ![antkmk](https://forums.solar2d.com/user_avatar/forums.solar2d.com/antkmk/32/2555_2.png) [@antkmk](https://forums.solar2d.com/u/antkmk)\
**Post date:** [July 20, 2024, 5:03pm UTC](https://forums.solar2d.com/t/android-14-api-level-34/356635/32 "2024-07-20T17:03:13Z")

</div>

That’s a very helpful explanation. Thank you!  
I guess I have to be patient and wait for Solar2d to be updated, but damn, I’m planning a vacation in August. Seems like a priority like this should be at the top of Solar2d’s list.  
P.S. Don’t misinterpret! Not upset with you. Your explanation is really useful. Just nervous about Solar2d. 🙂

---

<div class="post-metadata">

**Author:** ![Yvan](https://forums.solar2d.com/user_avatar/forums.solar2d.com/yvan/32/5000_2.png) [@Yvan](https://forums.solar2d.com/u/Yvan)\
**Post date:** [July 20, 2024, 9:27pm UTC](https://forums.solar2d.com/t/android-14-api-level-34/356635/33 "2024-07-20T21:27:18Z")

</div>

I am sure that everything will be ok because Vlads have commited two important modifications on the master branch yesterday.  
 ![image](https://forums.solar2d.com/uploads/default/original/2X/7/7e3f525f15f53d67899917196c299b78218d489e.png)  
So the fix will arrive in few days I imagine.

---

<div class="post-metadata">

**Author:** ![StarCrunch](https://forums.solar2d.com/user_avatar/forums.solar2d.com/starcrunch/32/67_2.png) [@StarCrunch](https://forums.solar2d.com/u/StarCrunch)\
**Post date:** [July 21, 2024, 12:12am UTC](https://forums.solar2d.com/t/android-14-api-level-34/356635/34 "2024-07-21T00:12:38Z")

</div>

These were listed in today’s build: [3707](https://github.com/coronalabs/corona/releases/tag/3707)

---

<div class="post-metadata">

**Author:** ![colinmorgan](https://forums.solar2d.com/user_avatar/forums.solar2d.com/colinmorgan/32/241_2.png) [@colinmorgan](https://forums.solar2d.com/u/colinmorgan)\
**Post date:** [July 21, 2024, 8:05am UTC](https://forums.solar2d.com/t/android-14-api-level-34/356635/35 "2024-07-21T08:05:32Z")

</div>

Requesting an extension is quick and easy. Here’s how to do it:

> [@How to Request an Extension for Android API Level 34](https://forums.solar2d.com/t/how-to-request-an-extension-for-android-api-level-34/356671):
>
> For everyone facing the upcoming August 31 deadline to update to API Level 34 for their projects in the Play Store, here are the step-by-step instructions for requesting an extension: Go to your Google Play Console and go to All Apps. Click on the Inbox in the left rail. Up at the top, under Important, you will find a message titled “Update your target API level by August 31, 2024 to release updates to your app…” for every app you have on the Play Store Click on the message to expand it. Click…

---

<div class="post-metadata">

**Author:** ![sky256](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/s/df705f/32.png) [@sky256](https://forums.solar2d.com/u/sky256)\
**Post date:** [July 21, 2024, 9:06am UTC](https://forums.solar2d.com/t/android-14-api-level-34/356635/36 "2024-07-21T09:06:51Z")

</div>

Tried to build for android using latest 3707 solar2d update and get an error 256:

```auto
Jul 21 13:01:27.186 ERROR:/Users/VV_1/.gradle/caches/transforms-3/e95fefe9e0be489136c0dc2d76aa5df8/transformed/jetified-Corona/jars/classes.jar: D8: java.lang.NullPointerException: Cannot invoke "String.length()" because "<parameter1>" is null
                    
                    FAILURE: Build failed with an exception.
                    
                    * What went wrong:
                    Execution failed for task ':App:desugarReleaseFileDependencies'.
                    > A failure occurred while executing com.android.build.gradle.internal.tasks.DexFileDependenciesTask$DexFileDependenciesWorkerAction
                       > Error while dexing.
                    
                    * Try:
                    > Run with --stacktrace option to get the stack trace.
                    > Run with --info or --debug option to get more log output.
                    > Run with --scan to get full insights.
                    
                    * Get more help at https://help.gradle.org
                    
                    BUILD FAILED in 48s
Jul 21 13:01:27.187 
Jul 21 13:01:27.294 Android build failed (256) after 52 seconds
Jul 21 13:01:27.654 ERROR: Build Failed: Error code: 256
Jul 21 13:01:27.654 

```

---

<div class="post-metadata">

**Author:** ![jdsmedeirosbr](https://forums.solar2d.com/user_avatar/forums.solar2d.com/jdsmedeirosbr/32/114_2.png) [@jdsmedeirosbr](https://forums.solar2d.com/u/jdsmedeirosbr)\
**Post date:** [July 21, 2024, 12:41pm UTC](https://forums.solar2d.com/t/android-14-api-level-34/356635/37 "2024-07-21T12:41:20Z")

</div>

Situation is complicated 🤷‍♂️

---

<div class="post-metadata">

**Author:** ![colinmorgan](https://forums.solar2d.com/user_avatar/forums.solar2d.com/colinmorgan/32/241_2.png) [@colinmorgan](https://forums.solar2d.com/u/colinmorgan)\
**Post date:** [July 21, 2024, 12:50pm UTC](https://forums.solar2d.com/t/android-14-api-level-34/356635/38 "2024-07-21T12:50:41Z")

</div>

Build 2024.3707 doesn’t address the API Level 34 issue. If you’re having trouble with that build, you should start a new thread or, even better, log it as an issue on GitHub.

---

<div class="post-metadata">

**Author:** ![andavidos](https://forums.solar2d.com/user_avatar/forums.solar2d.com/andavidos/32/4040_2.png) [@andavidos](https://forums.solar2d.com/u/andavidos)\
**Post date:** [August 5, 2024, 6:51pm UTC](https://forums.solar2d.com/t/android-14-api-level-34/356635/39 "2024-08-05T18:51:07Z")

</div>

Hi Solar comunnity,

Do you have any update about this issue? i am getting this error when i try to build:

```auto
FAILURE: Build failed with an exception.
                    
                    * What went wrong:
                    Could not resolve all files for configuration 'classpath'.
                    > Could not find klaxon-5.0.1.jar (com.beust:klaxon:5.0.1).
                      Searched in the following locations:
                          https://jcenter.bintray.com/com/beust/klaxon/5.0.1/klaxon-5.0.1.jar

```

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![jdsmedeirosbr](https://forums.solar2d.com/user_avatar/forums.solar2d.com/jdsmedeirosbr/32/114_2.png) [@jdsmedeirosbr](https://forums.solar2d.com/u/jdsmedeirosbr)\
**Post date:** [August 5, 2024, 8:23pm UTC](https://forums.solar2d.com/t/android-14-api-level-34/356635/40 "2024-08-05T20:23:55Z")

</div>

What version of solar2d are you using?

[Previous page](https://forums.solar2d.com/t/android-14-api-level-34/356635.md?page=1)

[Next page](https://forums.solar2d.com/t/android-14-api-level-34/356635.md?page=3)
