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

Can't make release build (Android) due to error #236

Closed
leithalnajjar opened this issue Apr 3, 2023 · 14 comments
Closed

Can't make release build (Android) due to error #236

leithalnajjar opened this issue Apr 3, 2023 · 14 comments

Comments

@leithalnajjar
Copy link

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':flutter_pdfview:verifyReleaseResources'.

A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
Android resource linking failed
ERROR:/Users/dimius555/Development/Flutter Projects/Mroad/build/flutter_pdfview/intermediates/merged_res/release/values/values.xml:132: AAPT: error: resource android:attr/lStar not found.

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

@babysofttester
Copy link

Execution failed for task ':flutter_pdfview:verifyReleaseResources'.

A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
Android resource linking failed

Same issue with me also

@upgrade-dev
Copy link

Same here
Flutter 3.7.9 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 62bd79521d (4 giorni fa) • 2023-03-30 10:59:36 -0700
Engine • revision ec975089ac
Tools • Dart 2.19.6 • DevTools 2.20.1

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.7.9, on Manjaro Linux 6.1.19-1-MANJARO, locale it_IT.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)
! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[✓] Linux toolchain - develop for Linux desktop
[✓] Android Studio (version 2021.3)
[✓] Connected device (2 available)
[✓] HTTP Host Availability

  • What went wrong:
    Execution failed for task ':flutter_pdfview:verifyReleaseResources'.

A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
Android resource linking failed
ERROR:/home/nixbi/.gradle/caches/transforms-3/36128c1351c9ec2b226115461677d9c1/transformed/core-1.7.0/res/values/values.xml:105:5-114:25: AAPT: error: resource android:attr/lStar not found.

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

@Thelm76
Copy link

Thelm76 commented Apr 3, 2023

force 1.2.9 for now, this issue happened with 1.2.6, it was caused by the android depencency upgrade from beta2 to beta3.
As I see no doc yet on how to do the migration (native-side) I think it's the best thing to do for now....

@charlesRmajor
Copy link

1.2.9 didn't work for me. Tried 1.2.5 and a few lower than that and they're all showing the same error.

@AlfaizCeras
Copy link

Same issue with me.

* What went wrong:
Execution failed for task ':flutter_pdfview:verifyReleaseResources'.
> A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
   > Android resource linking failed
     ERROR:/Users/alfaiz/Development/Ceras/Ceras_Mobile_v2/build/flutter_pdfview/intermediates/merged_res/release/values/values.xml:132: AAPT: error: resource android:attr/lStar not found.

@charlesRmajor
Copy link

1.2.9 didn't work for me. Tried 1.2.5 and a few lower than that and they're all showing the same error.

Sorry, dumb mistake. I left the ^ in before these so they were upgrading to 1.3.0. When I took that out, 1.2.9 worked.

@Thelm76
Copy link

Thelm76 commented Apr 5, 2023

@endigo could you please update the documentation to add the needed requirements for last version ?
I'm thinking about maybe something to add to the build.gradle, to add the support for Attr/LStar

EDIT: I see that android-pdf-viewer:3.2.0-beta.3 replaces android-appcompat by androidX and I think the issue comes from that.

@jacky4631
Copy link

1.2.9 work for me, use flutter_pdfview: 1.2.9,don't contains ^,then flutter clean/build

@bishal-rumba007
Copy link

@jacky4631 do you mean i should inclue ^ infront of 1.2.9 or i should not include this?

@ameenbadri7
Copy link

1.2.9 work for me, use flutter_pdfview: 1.2.9,don't contains ^,then flutter clean/build

this worked for me ..thanks all.

@devmgs
Copy link

devmgs commented Apr 20, 2023

for the time being, it is not resolved to add this to pubspec

dependency_overrides:
  # Keep until https://github.com/endigo/flutter_pdfview/issues/236 is resolved.
  flutter_pdfview: 1.2.9

@bishal-rumba007
Copy link

I have come across same issue again.
I added 1.2.9 a week ago and it worked but its giving similar error

@devmgs
Copy link

devmgs commented Apr 28, 2023

need to be merged with #240

@endigo
Copy link
Owner

endigo commented Apr 29, 2023

@endigo endigo closed this as completed Apr 29, 2023
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