What went wrong:
A problem occurred configuring project ':razorpay_flutter'.
Could not load compiled classes for build file 'C:\Users\BFLY\AppData\Local\Pub\Cache\hosted\pub.dev\razorpay_flutter-1.3.4\android\build.gradle' from cache.
Failed to notify project evaluation listener.
Could not get unknown property 'android' for project ':razorpay_flutter' of type org.gradle.api.Project.
Could not find method implementation() for arguments [project ':fluttertoast'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
Could not find method implementation() for arguments [project ':package_info_plus'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
Could not get unknown property 'android' for project ':razorpay_flutter' 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.
BUILD FAILED in 16s
Exception: Gradle task assembleDebug failed with exit code 1
this is the error
And here is my flutter doc result
flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.7.6, on Microsoft Windows [Version 10.0.19044.2846], locale en-IN)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.6)
[√] Android Studio (version 2020.3)
[√] VS Code (version 1.77.3)
[√] Connected device (4 available)
[√] HTTP Host Availability
Hi im getting the same error now
FAILURE: Build failed with an exception.
What went wrong: A problem occurred configuring project ':razorpay_flutter'.
Try:
Get more help at https://help.gradle.org
BUILD FAILED in 16s Exception: Gradle task assembleDebug failed with exit code 1
this is the error
And here is my flutter doc result
flutter doctor Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel stable, 3.7.6, on Microsoft Windows [Version 10.0.19044.2846], locale en-IN) [√] Windows Version (Installed version of Windows is version 10 or higher) [√] Android toolchain - develop for Android devices (Android SDK version 31.0.0) [√] Chrome - develop for the web [√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.6)
[√] Android Studio (version 2020.3) [√] VS Code (version 1.77.3) [√] Connected device (4 available) [√] HTTP Host Availability
• No issues found!
Please let me know if any of you can help me