user9846301
user9846301

Reputation:

Flutter app doesn't run. It gives this type of Error

Configure project :app Observed package id 'build-tools;debian' in inconsistent location '/usr/lib/android-sdk/build-tools/27.0.1' (Expected '/usr/lib/android-sdk/build-tools/debian') Observed package id 'build-tools;debian' in inconsistent location '/usr/lib/android-sdk/build-tools/27.0.1' (Expected '/usr/lib/android-sdk/build-tools/debian') Checking the license for package Android SDK Build-Tools 28.0.3 in /usr/lib/android-sdk/licenses Warning: License for package Android SDK Build-Tools 28.0.3 not accepted. Checking the license for package Android SDK Platform 26 in /usr/lib/android-sdk/licenses Warning: License for package Android SDK Platform 26 not accepted.

FAILURE: Build failed with an exception.

BUILD FAILED in 2s Command: /var/www/html/Happy/Flutter/demo/android/gradlew app:properties

Please review your Gradle project setup in the android/ folder.

Upvotes: 1

Views: 1142

Answers (1)

Lama
Lama

Reputation: 136

Try to run flutter doctor --android-licenses and then accept all licenses

Upvotes: 2

Related Questions