CCExtractor / beacon

Flutter application to share location with a group. (under development)
58 stars 148 forks source link

Need to update `compileSdkVersion` and `targetSdkVersion` #153

Closed AliAkberAakash closed 2 years ago

AliAkberAakash commented 2 years ago

Describe the bug Currently the compileSdkVersion and targetSdkVersion are set to 30 and some plugins used require it to be latest (31).

To Reproduce Clone the repo and build it.

Expected behavior Should build without any errors.

Demonstration Stacktrace: `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 Warning: unexpected element (uri:"", local:"base-extension"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level> Warning: The plugin flutter_local_notifications requires Android SDK version 31. Warning: The plugin flutter_plugin_android_lifecycle requires Android SDK version 31. Warning: The plugin geolocator_android requires Android SDK version 31. Warning: The plugin google_maps_flutter requires Android SDK version 31. Warning: The plugin path_provider_android requires Android SDK version 31. Warning: The plugin share_plus requires Android SDK version 31. Warning: The plugin shared_preferences_android requires Android SDK version 31. Warning: The plugin url_launcher_android requires Android SDK version 31. One or more plugins require a higher Android SDK version. Fix this issue by adding the following to /Users/bs274/flutter_projects/beacon/android/app/build.gradle: android { compileSdkVersion 31 ... }

FAILURE: Build failed with an exception.

BUILD FAILED in 26s Exception: Gradle task assembleDebug failed with exit code 1`

Environment

Are you working on this issue? (Yes/No) yes

AshAman999 commented 2 years ago

The issue #118 talks about it and the pr #119 handles the same i guess,

nb9960 commented 2 years ago

Closing this as PR #119 fixes this.