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

Build [ release ] failed with an exception ( fluttertoast:verifyReleaseResources ) #61

Closed
tarekbazine opened this issue Feb 14, 2019 · 13 comments

Comments

@tarekbazine
Copy link

setup

version: 1.0.0+1

environment:
  sdk: ">=2.0.0-dev.68.0 <3.0.0"

dependencies:
  ...
  fluttertoast: ^3.0.0
  ...

after running flutter clean and flutter build apk

Initializing gradle...                                       1,7s
Resolving dependencies...                                   16,1s
Gradle task 'assembleRelease'...
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
Note: D:\src\flutter\.pub-cache\hosted\pub.dartlang.org\connectivity-0.4.2\android\src\main\java\io\flutter\plugins\connectivity\ConnectivityPlugin.java uses or overrides a
 deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: D:\src\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_messaging-3.0.0\android\src\main\java\io\flutter\plugins\firebasemessaging\FlutterFirebaseInstanceIDService
.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

         *********************************************************
WARNING: This version of connectivity will break your Android build if it or its dependencies aren't compatible with AndroidX.
         See https://goo.gl/CP92wY for more information on the problem and how to fix it.
         This warning prints for all Android build failures. The real root cause of the error may be unrelated.
         *********************************************************
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':fluttertoast:verifyReleaseResources'.
> java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
  D:\codeLabs\algerien_lawyers\build\fluttertoast\intermediates\res\merged\release\values-v28\values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found.
  D:\codeLabs\algerien_lawyers\build\fluttertoast\intermediates\res\merged\release\values-v28\values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found.
  D:\codeLabs\algerien_lawyers\build\fluttertoast\intermediates\res\merged\release\values\values.xml:2601: error: resource android:attr/fontVariationSettings not found.
  D:\codeLabs\algerien_lawyers\build\fluttertoast\intermediates\res\merged\release\values\values.xml:2602: error: resource android:attr/ttcIndex not found.
  error: failed linking references.


* 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 1m 55s
Gradle task 'assembleRelease'... Done                       116,0s
Gradle task assembleRelease failed with exit code 1
@msw333
Copy link

msw333 commented Feb 14, 2019

I have the exact same issue. iOS is working fine. Already upgraded to AndroidX+ fluttertoast 3.0.0.

@tarekbazine
Copy link
Author

hey, @ponnamkarthik what do you think, plz we are in hurry for a release, thanks

@ckken
Copy link

ckken commented Feb 15, 2019

same problem

@bynikoala
Copy link

Facing the same problem over here. Strangely building works when we debug onto the AVD... It's only the release, making trouble

@xyzbilal
Copy link

same problem here

@ponnamkarthik
Copy link
Owner

Sorry for delay fix is gonna come today

@ponnamkarthik
Copy link
Owner

Please check it with version 3.0.1

@msw333
Copy link

msw333 commented Feb 20, 2019

Working for me - thanks a lot!

@ponnamkarthik
Copy link
Owner

Make in your android app/build.gradle file

compileSdkVersion is set to 28

@dhar619
Copy link

dhar619 commented Mar 11, 2019

Hey! I am using fluttertoast: ^3.0.3 which has no issue when run the app but in console it's showing

Note: /Users/xxx/xxx/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-3.0.3/android/src/main/java/io/github/ponnamkarthik/toast/fluttertoast/FluttertoastPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

Anything I need to be aware of it? 🙄

@tarekbazine
Copy link
Author

@dhar619 I do not think there is something you have to worry about, it's just a warning .

@tarekbazine
Copy link
Author

I am closing this as @ponnamkarthik, @msw333 and @dhar619 said that it is fixed (I did not check that)

@duytq94
Copy link

duytq94 commented Jul 19, 2019

I built success after upgrade to 3.1.0

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

8 participants