-
Notifications
You must be signed in to change notification settings - Fork 197
Execution failed for task ':speech_recognition:verifyReleaseResources' #82
Comments
I had the same problem and fixed it by updating the minSdkVersion and complieSdkVersion in the plugin to 28. If you want to try it out, you can use my fork as source for the plugin:
|
Hi. |
I have same problem try to build an apk with flutter and speech_recognition package.
My build.gradle android { defaultConfig { help me the solution 😌 |
I have updated the plugin in our fork to now use android x. This makes it compatible with minSDK 16. I have also created a pull request for the changes. In the mean time, you can use my fork as explained above. Be sure to use the newest version. (Check the commit label in your pubspec.lock) |
@RichiWIP Thanks a lot for your response😀 |
I imported it but it shows me error in the function onRecognitionComplete |
I have no errors in our applications using the plugin or in the example bundled with the plugin. Check that you are using the current version of flutter. I can't help you if you don't post the actual error. |
@RichiWIP This is the error :- |
Your version of the plugin is out of date. Sometimes flutter has issues pulling the current version from github. Try commenting out the import, run flutter pub get and the comment it back in and get again. |
It worked, thank you so much ❤️️❤️️❤️️ |
Hi @RichiWIP and @Jigneshiosdeveloper I don't understand how to fix my error When i run in debug it works fine however when i build the application I get the below output What went wrong: Execution failed for task ':speech_recognition:verifyReleaseResources'.
Similar to @Jigneshiosdeveloper android { defaultConfig { android.useAndroidX=true Must work for android 4.1 (SKD 16) as specified in your README I read through the comments here a few times but am unable to find a solution |
Yes it's not working for me :( |
Not working plz help! Error :
|
it working thank a lot |
I'm able to generated an APK with this fork but I still have a bug. |
this is working 100% fine... thanks alot |
Hi guys,
I tried to build an apk with flutter and speech_recognition package but met this bug:
FAILURE: Build failed with an exception. What went wrong: Execution failed for task ':speech_recognition:verifyReleaseResources'. 1 exception was raised by workers: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed /Users/namnh/Projects/revoicer/build/speech_recognition/intermediates/res/merged/release/values/values.xml:233: error: resource android:attr/fontStyle not found. /Users/namnh/Projects/revoicer/build/speech_recognition/intermediates/res/merged/release/values/values.xml:234: error: resource android:attr/font not found. /Users/namnh/Projects/revoicer/build/speech_recognition/intermediates/res/merged/release/values/values.xml:235: error: resource android:attr/fontWeight not found. /Users/namnh/Projects/revoicer/build/speech_recognition/intermediates/res/merged/release/values/values.xml:236: error: resource android:attr/fontVariationSettings not found. /Users/namnh/Projects/revoicer/build/speech_recognition/intermediates/res/merged/release/values/values.xml:237: error: resource android:attr/ttcIndex not found. error: failed linking references.
The app is working fine in debug but got this bug when trying to build the apk.
Could anyone help me out?
The text was updated successfully, but these errors were encountered: