I tried all possible way but didn't find how to configure " speech_to_text" in my existing flutter project.
Independent speech to text app working fine but i am not able to integrate in my existing app.
below steps i did still no luck :
Internet and record audio permission in Android manifest.
adding latest dependencey in pubspec.yaml speech_to_text
import 'package:speech_to_text/speech_to_text.dart' as stt;
stt.SpeechToText _speec = stt.SpeechToText();
5 . I change gradle version also which is same gradle version of woking "speech to text" app but independently
and i get below error
Log :
FAILURE: Build failed with an exception.
What went wrong:
A problem occurred configuring project ':speech_to_text'.
Failed to create Jar file C:\Users\jitkumar.gradle\caches\jars-8\c58c0f61a1162f88da75275a98d7f55b\auto-value-1.5.2.jar.
Could not get unknown property 'android' for project ':speech_to_text' of type org.gradle.api.Project.
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 1s
Exception: Gradle task assembleDebug failed with exit code 1
Thanks
Related
I'm trying to run my application -that is working fine with my team members-
but i keep getting this error
FAILURE: Build failed with an exception.
What went wrong:
A problem occurred configuring project ':package_info_plus'.
Could not load compiled classes for build file 'C:\src\flutter\flutter.pub-cache\hosted\pub.dartlang.org\package_info_plus-1.4.3+1\android\build.gradle' from cache.
Failed to notify project evaluation listener.
Could not get unknown property 'android' for project ':package_info_plus' of type org.gradle.api.Project.
Could not get unknown property 'android' for project ':package_info_plus' of type org.gradle.api.Project.
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 16s
Does anyone know the solution or can tell me how to view the stacktrace, I tried going to android studio-> settings-> compiler-> command
and i added --stacktrace but there is no changes in the run
try flutter run -d deviceid -v , will give you an insight as to whats happening
You can also cd into the android folder and run ./gradlew build
Hey I want to start learning flutter and I bought a course but when I try to run the auto-generated app I get the following error:
Running Gradle task 'assembleDebug'...
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugMainManifest'.
> com.android.manifmerger.ManifestMerger2$MergeFailureException: java.io.FileNotFoundException: E:\Flutter\untitled\build\app\intermediates\navigation_json\debug\navigation.json (The system cannot find the file specified)
* 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 31s
Running Gradle task 'assembleDebug'...
[!] Gradle threw an error while downloading artifacts from the network. Retrying to download...
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugMainManifest'.
> com.android.manifmerger.ManifestMerger2$MergeFailureException: java.io.FileNotFoundException: E:\Flutter\untitled\build\app\intermediates\navigation_json\debug\navigation.json (The system cannot find the file specified)
* 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 3s
[!] Gradle threw an error while downloading artifacts from the network. Retrying to download...
Exception: Gradle task assembleDebug failed with exit code 1
I saw other people talk about this here but the solution that worked for them didn't work for me.
Here are the things I've tried:
./gralew clean or./gradlew build
/flutter clean
reinstalling flutter and android studio from scratch.
deleting the gradle files and the build files.
switching to another laptop.
I will be very grateful if you guys can help me.
Best Regards,
-Roee Hovav.
Peace!
Open Android Studio make sure you have the latest version installed, and everything is updated then go ahead and open the Flutter project and trying building it from Android Studio
I found the similar error but for me is missing of androidmanifest.xml and I have fixed it
For me I have deleted the android folder and run command "flutter create ."
then I got another of errors about "SdkMinVersion" and "Flutter multidex handling is disabled." and fixed it step by step
Anyway I have found this solution after I have fixed and hope it will help you
--> changing gradle version as the link below
https://github.com/tekartik/sqflite/issues/380
I followed a tutorial to install flutter with vs code now when I try to build the project apk je encounters this error below:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':classpath'.
> Could not load module metadata from C:\Users\Adeol\.gradle\caches\modules-2\metadata-2.96\descriptors\com.android.tools.ddms\ddmlib\27.1.0\11cd36a7dcab7d14d0c14c5e6c7582e3\descriptor.bin
* 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
when I created a new project in flutter I wanted to test to see if it works with the default code in main.dart but I have this error above. Of course I searched on google and YouTube I tried to modify the version of the Gradle but without hope. Can you help me please?
I recently come from java and try to make my first app in flutter in android studio in windows 10.
I tried first sample code in my real android device and got this error.
I cant find proper after struggling 5 hours
In console get this error
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:stripDebugDebugSymbols'.
> NDK at C:\Users\10\AppData\Local\Android\sdk\ndk-bundle did not have a source.properties file
* 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 1s
Exception: Gradle task assembleDebug failed with exit code 1
Looks like you are missing NDK installation. Please confirm if highlighted item is installed
hi recently I upgrade and flutter to v2 and my android studio too but after that my flutter app gives a Gradle error and cant be extracted I tried too hard to do many solutions like but maven in dependency but it still gives an error.the gradle version is now 5.6 or something and one more thing all the application running well still which i made before upgrade and its gradle version is
Please help me out and the error is given below.
FAILURE: Build failed with an exception.
What went wrong:
A problem occurred configuring root project 'android'.
Could not resolve all dependencies for configuration ':classpath'.
Could not load module metadata from C:\Users\dell.gradle\caches\modules-2\metadata-2.96\descriptors\com.android.tools\annotations\27.1.0\11cd36a7dcab7d14d0c14c5e6c7582e3\descriptor.bin
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 20s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)