Flutter :: Camera plugin issue :: Application is not working in android but it is suitable for iOS

Issue

I am new to flutter development basically I am an ios developer,

While I am working on a new project in a flutter doing for the profile update screen
I have added a camera plugin for dependencies to get camera third-party to use both in ios android. So when it uses the ios application is running smoothly without showing an error but the android application showing some errors as follows

 FAILURE: Build failed with an exception.

 * What went wrong:
 Task 'assembleAarRelease' not found in root project 'camera'.

 * Try:
 Run gradlew tasks to get a list of available tasks. 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: The plugin camera could not be built due to the issue above.

can anyone tell what is the solution for this issue?

Solution

compileSdkVersion in build.gradle it ma about compileSdkVersion. Should be updated 29 or higher or
If you set ‘org.gradle.configureondemand=true’ in ‘gradle.properties’´╝îplease change to false.

Answered By – Muhtar

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published