Build failed due to A problem occurred configuring project ':pdfrx'.
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`
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 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.
So did you resolve the issue?
@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.
So what is the exact error you encounter now? Same error?