Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A problem occurred configuring project ':unityLibrary' #997

Open
RoyalCoder88 opened this issue Jan 29, 2025 · 3 comments
Open

A problem occurred configuring project ':unityLibrary' #997

RoyalCoder88 opened this issue Jan 29, 2025 · 3 comments

Comments

@RoyalCoder88
Copy link
Collaborator

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.
==============================================================================

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

Screenshots
Image

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

@hidayatasep43
Copy link

Have you already tried this?
#967

@RoyalCoder88
Copy link
Collaborator Author

Hi @hidayatasep43 thanks I tried, but I still have some issues, I think I have some issues in my Android folder structure, gradle, settings etc...I need the android folder as an example from somebody to try to fix it.

Do you have the android folder?
Thanks in advance!

@hidayatasep43
Copy link

Is your project working fine when using Android Debug?

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

No branches or pull requests

2 participants