Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Following dependency donot satisfy required version #217

Open
badiul6 opened this issue Jul 31, 2023 · 10 comments
Open

Following dependency donot satisfy required version #217

badiul6 opened this issue Jul 31, 2023 · 10 comments

Comments

@badiul6
Copy link

badiul6 commented Jul 31, 2023

FAILURE: Build failed with an exception.

  • What went wrong:
    The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher.
    The following dependencies do not satisfy the required version:
    project ':arcore_flutter_plugin' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50
@abdulazisalayubbi
Copy link

same here, has it been solved?

@badiul6
Copy link
Author

badiul6 commented Aug 4, 2023

Not Yet

@bariskoe
Copy link

bariskoe commented Aug 8, 2023

Same problem here. Any suggestions how to quickfix?

@M4RC0N3
Copy link

M4RC0N3 commented Aug 20, 2023

Same problem here!! I don't know what to do anymore... 😕

@NafeeWalee
Copy link

Changed the highlighted version.

Screenshot 2023-08-23 134047

@brollsroyce
Copy link

Quick fix:
clone this branch: #215
and then locally import ar_flutter_plugin using the path to the cloned repo

@yaffalhakim1
Copy link

Quick fix: clone this branch: #215 and then locally import ar_flutter_plugin using the path to the cloned repo

would you mind give detailed tutorial? i tried this way but have some errors like 'Couldn't resolve the package....'

@brollsroyce
Copy link

brollsroyce commented Aug 29, 2023

Quick fix: clone this branch: #215 and then locally import ar_flutter_plugin using the path to the cloned repo

would you mind give detailed tutorial? i tried this way but have some errors like 'Couldn't resolve the package....'

Clone the branch that I mentioned and add the path of the cloned repo to the dependencies in pubsepc.yaml as follows:
dependencies:
flutter:
sdk: flutter
// any other dependencies
ar_flutter_plugin:
path: path/to/ar_flutter_plugin

@KJ-Waller
Copy link

Quick fix: clone this branch: #215 and then locally import ar_flutter_plugin using the path to the cloned repo

would you mind give detailed tutorial? i tried this way but have some errors like 'Couldn't resolve the package....'

Clone the branch that I mentioned and add the path of the cloned repo to the dependencies in pubsepc.yaml as follows: dependencies: flutter: sdk: flutter // any other dependencies ar_flutter_plugin: path: path/to/ar_flutter_plugin

I'm still getting an issue after this fix, would you happen to know how to fix this?

> flutter run
Resolving dependencies... 
The current Dart SDK version is 3.1.3.

Because arcore_flutter_plugin_example depends on cupertino_icons >=0.1.1 <1.0.1 which doesn't support null safety, version solving failed.

The lower bound of "sdk: '<2.0.0 or >=2.0.0-dev.28.0 <3.0.0'" must be 2.12.0 or higher to enable null safety.
For details, see https://dart.dev/null-safety


You can try the following suggestion to make the pubspec resolve:
* Try upgrading your constraint on cupertino_icons: flutter pub add cupertino_icons:^1.0.6

Installing the recommended version in cupertino_icons just causes a lot of errors like the following

The minCompileSdk (33) specified in a
        dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties)
        is greater than this module's compileSdkVersion (android-31).
        Dependency: androidx.appcompat:appcompat-resources:1.6.1.

Which recommends a fix to increase the compileSdkVersion in my app\build.gradle to 33, but this just makes me run into the following error

Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/03 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/03 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/03 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01

@KJ-Waller
Copy link

Quick fix: clone this branch: #215 and then locally import ar_flutter_plugin using the path to the cloned repo

would you mind give detailed tutorial? i tried this way but have some errors like 'Couldn't resolve the package....'

Clone the branch that I mentioned and add the path of the cloned repo to the dependencies in pubsepc.yaml as follows: dependencies: flutter: sdk: flutter // any other dependencies ar_flutter_plugin: path: path/to/ar_flutter_plugin

I'm still getting an issue after this fix, would you happen to know how to fix this?

> flutter run
Resolving dependencies... 
The current Dart SDK version is 3.1.3.

Because arcore_flutter_plugin_example depends on cupertino_icons >=0.1.1 <1.0.1 which doesn't support null safety, version solving failed.

The lower bound of "sdk: '<2.0.0 or >=2.0.0-dev.28.0 <3.0.0'" must be 2.12.0 or higher to enable null safety.
For details, see https://dart.dev/null-safety


You can try the following suggestion to make the pubspec resolve:
* Try upgrading your constraint on cupertino_icons: flutter pub add cupertino_icons:^1.0.6

Installing the recommended version in cupertino_icons just causes a lot of errors like the following

The minCompileSdk (33) specified in a
        dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties)
        is greater than this module's compileSdkVersion (android-31).
        Dependency: androidx.appcompat:appcompat-resources:1.6.1.

Which recommends a fix to increase the compileSdkVersion in my app\build.gradle to 33, but this just makes me run into the following error

Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/03 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/03 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/03 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01

I was able to fix it by just commenting out the line cupertino_icons: ^0.1.3 in the pubspec.yaml file, in addition to pointing to the path of the cloned repo from pull request 215 in my pubspec.yaml under arcore_flutter_plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants