pdfrx icon indicating copy to clipboard operation
pdfrx copied to clipboard

Build failed due to A problem occurred configuring project ':pdfrx'.

Open Uvais-Mohammad opened this issue 1 year ago • 5 comments

When I am trying to create an android build, I am getting this issue.

`FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

  • What went wrong: A problem occurred configuring project ':pdfrx'.

com.android.builder.sdk.LicenceNotAcceptedException: Failed to install the following Android SDK packages as some licences have not been accepted. ndk;23.1.7779620 NDK (Side by side) 23.1.7779620 To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager. All licenses can be accepted using the sdkmanager command line tool: sdkmanager.bat --licenses Or, to transfer the license agreements from one workstation to another, see https://developer.android.com/studio/intro/update.html#download-with-gradle

Using Android SDK: /opt/homebrew/Caskroom/android-platform-tools/35.0.1

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

2: Task failed with an exception.

  • What went wrong: Failed to query the value of property 'buildFlowServiceProperty'.

Could not isolate value org.jetbrains.kotlin.gradle.plugin.statistics.BuildFlowService$Parameters_Decorated@1594d755 of type BuildFlowService.Parameters A problem occurred configuring project ':pdfrx'. > com.android.builder.sdk.LicenceNotAcceptedException: Failed to install the following Android SDK packages as some licences have not been accepted. ndk;23.1.7779620 NDK (Side by side) 23.1.7779620 To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager. All licenses can be accepted using the sdkmanager command line tool: sdkmanager.bat --licenses Or, to transfer the license agreements from one workstation to another, see https://developer.android.com/studio/intro/update.html#download-with-gradle

    Using Android SDK: /opt/homebrew/Caskroom/android-platform-tools/35.0.1
  • 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 2s Running Gradle task 'assembleDevRelease'... 2,710ms`

Uvais-Mohammad avatar Aug 26 '24 07:08 Uvais-Mohammad

Error message contains an important instruction to fix the issue:

To build this project, accept the SDK license agreements

All you have to do is;

flutter doctor --android-licenses

espresso3389 avatar Aug 26 '24 07:08 espresso3389

@espresso3389 Everything is clear

 flutter doctor --android-licenses
/Users/aaa/Library/Android/sdk/cmdline-tools/latest/bin/sdkmanager: line 173: test: : integer expression expected
[=======================================] 100% Computing updates...             
All SDK package licenses accepted.

Uvais-Mohammad avatar Aug 28 '24 11:08 Uvais-Mohammad

So did you resolve the issue?

espresso3389 avatar Aug 28 '24 12:08 espresso3389

@espresso3389 flutter doctor --android-licenses didn't resolved the issue. But this error does not seems due to pdfrx. The reason I posted here is that error contains something related to pdfrx.I was using vscode. So I opened the android folder through android studio and took build through there. There was no any issues.

Uvais-Mohammad avatar Aug 28 '24 15:08 Uvais-Mohammad

So what is the exact error you encounter now? Same error?

espresso3389 avatar Aug 28 '24 16:08 espresso3389