-
Notifications
You must be signed in to change notification settings - Fork 888
Description
Bug description
I am using this library in an existing flutter app.
Currently working on upgrading the app to API 36 as required by new Google requirements.
The current version of syncfusion_flutter_pdfviewer has a compileSdkVersion 31
This is creating numerous errors from gradle and the android build.
I was able to work around this by creating a local copy of syncfusion_flutter_pdfviewer and it's dependencies.
in syncfusion_flutter_pdfviewer/android/build.gradle
I changed to compileSdkVersion 36
Note: syncfusion_flutter_core
also had compiler errors and I commented out those lines.
Steps to reproduce
in pubspec.yaml
include the line
syncfusion_flutter_pdfviewer: ^31.1.19
Code sample
Code sample
[Add your code here]
Screenshots or Video
Screenshots / Video demonstration
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':syncfusion_flutter_pdfviewer:checkDebugAarMetadata'.
A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction
19 issues were found when checking AAR metadata:
1. Dependency 'androidx.fragment:fragment:1.7.1' requires libraries and applications that
depend on it to compile against version 34 or later of the
Android APIs.
:syncfusion_flutter_pdfviewer is currently compiled against android-31.
Recommended action: Update this project to use a newer compileSdk
of at least 34, for example 36.
Note that updating a library or application's compileSdk (which
allows newer APIs to be used) can be done separately from updating
targetSdk (which opts the app in to new runtime behavior) and
minSdk (which determines which devices the app can be installed
on).
2. Dependency 'androidx.window:window:1.2.0' requires libraries and applications that
depend on it to compile against version 34 or later of the
Android APIs.
:syncfusion_flutter_pdfviewer is currently compiled against android-31.
Recommended action: Update this project to use a newer compileSdk
of at least 34, for example 36.
Note that updating a library or application's compileSdk (which
allows newer APIs to be used) can be done separately from updating
targetSdk (which opts the app in to new runtime behavior) and
minSdk (which determines which devices the app can be installed
on).
3. Dependency 'androidx.window:window-java:1.2.0' requires libraries and applications that
depend on it to compile against version 34 or later of the
Android APIs.
:syncfusion_flutter_pdfviewer is currently compiled against android-31.
Recommended action: Update this project to use a newer compileSdk
of at least 34, for example 36.
Note that updating a library or application's compileSdk (which
allows newer APIs to be used) can be done separately from updating
targetSdk (which opts the app in to new runtime behavior) and
minSdk (which determines which devices the app can be installed
on).
4. Dependency 'androidx.activity:activity:1.8.1' requires libraries and applications that
depend on it to compile against version 34 or later of the
Android APIs.
:syncfusion_flutter_pdfviewer is currently compiled against android-31.
Recommended action: Update this project to use a newer compileSdk
of at least 34, for example 36.
Note that updating a library or application's compileSdk (which
allows newer APIs to be used) can be done separately from updating
targetSdk (which opts the app in to new runtime behavior) and
minSdk (which determines which devices the app can be installed
on).
5. Dependency 'androidx.lifecycle:lifecycle-livedata-core-ktx:2.7.0' requires libraries and applications that
depend on it to compile against version 34 or later of the
Android APIs.
:syncfusion_flutter_pdfviewer is currently compiled against android-31.
Recommended action: Update this project to use a newer compileSdk
of at least 34, for example 36.
Note that updating a library or application's compileSdk (which
allows newer APIs to be used) can be done separately from updating
targetSdk (which opts the app in to new runtime behavior) and
minSdk (which determines which devices the app can be installed
on).
6. Dependency 'androidx.lifecycle:lifecycle-livedata:2.7.0' requires libraries and applications that
depend on it to compile against version 34 or later of the
Android APIs.
:syncfusion_flutter_pdfviewer is currently compiled against android-31.
Recommended action: Update this project to use a newer compileSdk
of at least 34, for example 36.
Note that updating a library or application's compileSdk (which
allows newer APIs to be used) can be done separately from updating
targetSdk (which opts the app in to new runtime behavior) and
minSdk (which determines which devices the app can be installed
on).
7. Dependency 'androidx.lifecycle:lifecycle-viewmodel:2.7.0' requires libraries and applications that
depend on it to compile against version 34 or later of the
Android APIs.
:syncfusion_flutter_pdfviewer is currently compiled against android-31.
Recommended action: Update this project to use a newer compileSdk
of at least 34, for example 36.
Note that updating a library or application's compileSdk (which
allows newer APIs to be used) can be done separately from updating
targetSdk (which opts the app in to new runtime behavior) and
minSdk (which determines which devices the app can be installed
on).
8. Dependency 'androidx.lifecycle:lifecycle-livedata-core:2.7.0' requires libraries and applications that
depend on it to compile against version 34 or later of the
Android APIs.
:syncfusion_flutter_pdfviewer is currently compiled against android-31.
Recommended action: Update this project to use a newer compileSdk
of at least 34, for example 36.
Note that updating a library or application's compileSdk (which
allows newer APIs to be used) can be done separately from updating
targetSdk (which opts the app in to new runtime behavior) and
minSdk (which determines which devices the app can be installed
on).
9. Dependency 'androidx.lifecycle:lifecycle-viewmodel-savedstate:2.7.0' requires libraries and applications that
depend on it to compile against version 34 or later of the
Android APIs.
:syncfusion_flutter_pdfviewer is currently compiled against android-31.
Recommended action: Update this project to use a newer compileSdk
of at least 34, for example 36.
Note that updating a library or application's compileSdk (which
allows newer APIs to be used) can be done separately from updating
targetSdk (which opts the app in to new runtime behavior) and
minSdk (which determines which devices the app can be installed
on).
10. Dependency 'androidx.core:core-ktx:1.13.1' requires libraries and applications that
depend on it to compile against version 34 or later of the
Android APIs.
:syncfusion_flutter_pdfviewer is currently compiled against android-31.
Recommended action: Update this project to use a newer compileSdk
of at least 34, for example 36.
Note that updating a library or application's compileSdk (which
allows newer APIs to be used) can be done separately from updating
targetSdk (which opts the app in to new runtime behavior) and
minSdk (which determines which devices the app can be installed
on).
11. Dependency 'androidx.core:core:1.13.1' requires libraries and applications that
depend on it to compile against version 34 or later of the
Android APIs.
:syncfusion_flutter_pdfviewer is currently compiled against android-31.
Recommended action: Update this project to use a newer compileSdk
of at least 34, for example 36.
Note that updating a library or application's compileSdk (which
allows newer APIs to be used) can be done separately from updating
targetSdk (which opts the app in to new runtime behavior) and
minSdk (which determines which devices the app can be installed
on).
12. Dependency 'androidx.lifecycle:lifecycle-runtime:2.7.0' requires libraries and applications that
depend on it to compile against version 34 or later of the
Android APIs.
:syncfusion_flutter_pdfviewer is currently compiled against android-31.
Recommended action: Update this project to use a newer compileSdk
of at least 34, for example 36.
Note that updating a library or application's compileSdk (which
allows newer APIs to be used) can be done separately from updating
targetSdk (which opts the app in to new runtime behavior) and
minSdk (which determines which devices the app can be installed
on).
13. Dependency 'androidx.lifecycle:lifecycle-process:2.7.0' requires libraries and applications that
depend on it to compile against version 34 or later of the
Android APIs.
:syncfusion_flutter_pdfviewer is currently compiled against android-31.
Recommended action: Update this project to use a newer compileSdk
of at least 34, for example 36.
Note that updating a library or application's compileSdk (which
allows newer APIs to be used) can be done separately from updating
targetSdk (which opts the app in to new runtime behavior) and
minSdk (which determines which devices the app can be installed
on).
14. Dependency 'androidx.savedstate:savedstate:1.2.1' requires libraries and applications that
depend on it to compile against version 33 or later of the
Android APIs.
:syncfusion_flutter_pdfviewer is currently compiled against android-31.
Recommended action: Update this project to use a newer compileSdk
of at least 33, for example 36.
Note that updating a library or application's compileSdk (which
allows newer APIs to be used) can be done separately from updating
targetSdk (which opts the app in to new runtime behavior) and
minSdk (which determines which devices the app can be installed
on).
15. Dependency 'androidx.profileinstaller:profileinstaller:1.3.1' requires libraries and applications that
depend on it to compile against version 33 or later of the
Android APIs.
:syncfusion_flutter_pdfviewer is currently compiled against android-31.
Recommended action: Update this project to use a newer compileSdk
of at least 33, for example 36.
Note that updating a library or application's compileSdk (which
allows newer APIs to be used) can be done separately from updating
targetSdk (which opts the app in to new runtime behavior) and
minSdk (which determines which devices the app can be installed
on).
16. Dependency 'androidx.tracing:tracing:1.2.0' requires libraries and applications that
depend on it to compile against version 33 or later of the
Android APIs.
:syncfusion_flutter_pdfviewer is currently compiled against android-31.
Recommended action: Update this project to use a newer compileSdk
of at least 33, for example 36.
Note that updating a library or application's compileSdk (which
allows newer APIs to be used) can be done separately from updating
targetSdk (which opts the app in to new runtime behavior) and
minSdk (which determines which devices the app can be installed
on).
17. Dependency 'androidx.arch.core:core-runtime:2.2.0' requires libraries and applications that
depend on it to compile against version 33 or later of the
Android APIs.
:syncfusion_flutter_pdfviewer is currently compiled against android-31.
Recommended action: Update this project to use a newer compileSdk
of at least 33, for example 36.
Note that updating a library or application's compileSdk (which
allows newer APIs to be used) can be done separately from updating
targetSdk (which opts the app in to new runtime behavior) and
minSdk (which determines which devices the app can be installed
on).
18. Dependency 'androidx.window.extensions.core:core:1.0.0' requires libraries and applications that
depend on it to compile against version 33 or later of the
Android APIs.
:syncfusion_flutter_pdfviewer is currently compiled against android-31.
Recommended action: Update this project to use a newer compileSdk
of at least 33, for example 36.
Note that updating a library or application's compileSdk (which
allows newer APIs to be used) can be done separately from updating
targetSdk (which opts the app in to new runtime behavior) and
minSdk (which determines which devices the app can be installed
on).
19. Dependency 'androidx.annotation:annotation-experimental:1.4.0' requires libraries and applications that
depend on it to compile against version 34 or later of the
Android APIs.
:syncfusion_flutter_pdfviewer is currently compiled against android-31.
Recommended action: Update this project to use a newer compileSdk
of at least 34, for example 36.
Note that updating a library or application's compileSdk (which
allows newer APIs to be used) can be done separately from updating
targetSdk (which opts the app in to new runtime behavior) and
minSdk (which determines which devices the app can be installed
on).
Stack Traces
Stack Traces
[Add the Stack Traces here]
On which target platforms have you observed this bug?
Android
Flutter Doctor output
Doctor output
flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.35.3, on macOS 15.5 24F74 darwin-arm64, locale en-US)
[!] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[✓] Xcode - develop for iOS and macOS (Xcode 16.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2025.1)
[✓] VS Code (version 1.98.2)
[✓] Connected device (4 available)
! Error: Browsing on the local area network for iPhone12. Ensure the device is unlocked and attached with a cable or associated with the same local area
network as this Mac.
The device must be opted into Developer Mode to connect wirelessly. (code -27)
[✓] Network resources
! Doctor found issues in 1 category.