Description
Describe the bug
Unable to build app for Android, errors:
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-
Where:
Build file 'C:\Users\burac\Desktop\Apps\unipeople\android\unityLibrary\build.gradle' line: 2 -
What went wrong:
A problem occurred evaluating project ':unityLibrary'.
Could not read script 'C:\Users\burac\Desktop\Apps\unipeople\android\shared\keepUnitySymbols.gradle' as it does not exist.
- 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.
==============================================================================
2: Task failed with an exception.
- What went wrong:
A problem occurred configuring project ':unityLibrary'.
com.android.builder.errors.EvalIssueException: compileSdkVersion is not specified. Please add it to build.gradle
- 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 51s
Running Gradle task 'bundleRelease'... 52.7s
Gradle task bundleRelease failed with exit code 1
To Reproduce
Steps to reproduce the behavior:
run: flutter build appbundle --release
Unity (please complete the following information):
- OS: Android
- Version: any
Flutter Details
[√] Flutter (Channel stable, 3.27.3, on Microsoft Windows [Version 10.0.26100.2894], locale en-GB)
• Flutter version 3.27.3 on channel stable at C:\tools\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision c519ee916e (8 days ago), 2025-01-21 10:32:23 -0800
• Engine revision e672b006cb
• Dart version 3.6.1
• DevTools version 2.40.2
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 35.0.0-rc2)
• Android SDK at C:\Users\burac\AppData\Local\Android\sdk
• Platform android-35, build-tools 35.0.0-rc2
• Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
• Java version OpenJDK Runtime Environment (build 17.0.9+0--11185874)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.4.4)
• Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
• Visual Studio Community 2022 version 17.4.33213.308
• Windows 10 SDK version 10.0.22000.0
[√] Android Studio (version 2023.2)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.9+0--11185874)
[√] VS Code (version 1.96.4)
• VS Code at C:\Users\burac\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.102.0
[√] Connected device (3 available)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.26100.2894]
• Chrome (web) • chrome • web-javascript • Google Chrome 132.0.6834.159
• Edge (web) • edge • web-javascript • Microsoft Edge 131.0.2903.112
[√] Network resources
• All expected network resources are available.
• No issues found!
Unity Version
6000.0.29f1
Additional context
I tried many solutions that I found, unsuccessfully