giandifra / arcore_flutter_plugin

Flutter plugin for ARCore SDK, Android platform to build new augmented reality experiences
MIT License
435 stars 280 forks source link

Following dependency donot satisfy required version #217

Open badiul6 opened 1 year ago

badiul6 commented 1 year ago

FAILURE: Build failed with an exception.

Azis202017 commented 1 year ago

same here, has it been solved?

badiul6 commented 1 year ago

Not Yet

bariskoe commented 1 year ago

Same problem here. Any suggestions how to quickfix?

M4RC0N3 commented 1 year ago

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

NafeeWalee commented 1 year ago

Changed the highlighted version.

Screenshot 2023-08-23 134047

brollsroyce commented 1 year ago

Quick fix: clone this branch: https://github.com/giandifra/arcore_flutter_plugin/pull/215 and then locally import ar_flutter_plugin using the path to the cloned repo

yaffalhakim1 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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.