TomRoush / PdfBox-Android

The Apache PdfBox project ported to work on Android
Apache License 2.0
1.02k stars 263 forks source link

Can't build and run after AGP upgrade #543

Open AndroidDeveloperLB opened 1 year ago

AndroidDeveloperLB commented 1 year ago

Describe the bug I tried to clone, import, upgrade AGP according to the IDE, and build. Can't build.

To reproduce Clone, import, upgrade AGP according to the IDE, and build.

PDF example None

Expected behavior Be able to build, and run the sample.

Actual behavior It shows an error:

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Users\User\Desktop\PdfBox-Android\library\build.gradle' line: 69

* What went wrong:
A problem occurred configuring project ':library'.
> Could not create task ':library:testDebugUnitTest'.
   > Could not set unknown property 'enabled' for Report html of type org.gradle.api.reporting.internal.TaskGeneratedSingleDirectoryReport.

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

Environment details:

Additional context Attached project and video here: PdfBox-Android.zip

This sample and library should get updated. I've seen even jcenter still there...