1

I developed a flutter project and this project works fine with my ios stimulator but does not run on my android phone (physical phone). I get an exception while trying to run the project.

What is the reason for this?

Exception:

 What went wrong:
A problem occurred evaluating project ':app'.

> Failed to apply plugin 'com.android.internal.version-check'.
   > Cannot parse project property android.enableJetifier='true ' of type 'class java.lang.String' as boolean. Expected 'true' or 'false'.

* 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 968ms
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)

1 Answer 1

2

In gradle.properties check that you have android.enableJetifier=true without a space behind it. just remove last space from 'true '

android.enableJetifier='true '

put it like this

android.enableJetifier=true
android.useAndroidX=true
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.