Skip to content

fix for android build fail#4

Open
HyundongHwang wants to merge 1 commit intoSpirit30:mainfrom
HyundongHwang:will/fix_android_build
Open

fix for android build fail#4
HyundongHwang wants to merge 1 commit intoSpirit30:mainfrom
HyundongHwang:will/fix_android_build

Conversation

@HyundongHwang
Copy link
Copy Markdown

Hi
Thank you for making such a great package.
It's very useful.

I tried to fix the build failure due to conflict of latest aapt options for android as below.

unity 2022.3.37f1

build err

UnityException: Error
mainTemplate.gradle file is using the old aaptOptions noCompress property definition which does not include types defined by unityStreamingAssets constant.

unity 2022.3.37f1

build err
```
UnityException: Error
mainTemplate.gradle file is using the old aaptOptions noCompress property definition which does not include types defined by unityStreamingAssets constant.
```
@luducn
Copy link
Copy Markdown

luducn commented Jan 1, 2025

Thank you very much. Based on unity2022.3.37f1, I set android.enableR8=true. This variable cannot be compiled on my mac. unityStreamingAssets=.unity3dSTREAMING_ASSETS
org.gradle.jvmargs=-XmxJVM_HEAP_SIZEM
org.gradle.parallel=true
android.useAndroidX=true
android.enableJetifier=true
android.enableR8=true gradleTemplate.properties File can be exported normally after modification. But now it does not work properly on 22.3.45f1. Now I am downloading the latest version of unity22.3.55f1

@luducn
Copy link
Copy Markdown

luducn commented Jan 1, 2025

I found the problem!!. It was the android sdk tool. I used 2022.3.55f1 for ndk jdk and 2022.3.37f1 for sdk tool. Then everything was normal.

@MisterFOnGitHub
Copy link
Copy Markdown

Hey I tried to build for Android, added the line to mainTemplate.gradle, but Gradle fails.
I am using Unity 2022.3.62, and the error is the following:
Could not find com.arthenica:mobile-ffmpeg-full-gpl:4.4.LTS.

Am I doing something wrong?

Thanks for the help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants