flutter_contacts icon indicating copy to clipboard operation
flutter_contacts copied to clipboard

Warning: Overriding compileSdk version in Flutter plugin error when running Flutter

Open chegmarco1989 opened this issue 10 months ago • 4 comments

Hello.

After installing this Package and others in my FLUTTER App and when I run flutter run or flutter run --debug, I got these followings errors:

PS C:\Users\useru\Downloads\project\EDITED\flutter_user> flutter run --debug
Launching lib\main.dart on sdk gphone x86 64 in debug mode...
You are applying Flutter's app_plugin_loader Gradle plugin imperatively using the apply script method, which is deprecated and will be removed in a future release. Migrate to applying Gradle plugins with the declarative plugins block: https://flutter.dev/to/flutter-gradle-plugin-apply

You are applying Flutter's main Gradle plugin imperatively using the apply script method, which is deprecated and will be removed in a future release. Migrate to applying Gradle plugins with the declarative plugins block: https://flutter.dev/to/flutter-gradle-plugin-apply

Warning: Overriding compileSdk version in Flutter plugin: audioplayers_android from 33 to 34 (to work around https://issuetracker.google.com/issues/199180389).
If there is not a new version of audioplayers_android, consider filing an issue against audioplayers_android to increase their compileSdk to the latest (otherwise try updating to the latest version).
Warning: Overriding compileSdk version in Flutter plugin: contacts_service from 30 to 34 (to work around https://issuetracker.google.com/issues/199180389).
If there is not a new version of contacts_service, consider filing an issue against contacts_service to increase their compileSdk to the latest (otherwise try updating to the latest version).
Warning: Overriding compileSdk version in Flutter plugin: flutter_callkit_incoming from 31 to 34 (to work around https://issuetracker.google.com/issues/199180389).
If there is not a new version of flutter_callkit_incoming, consider filing an issue against flutter_callkit_incoming to increase their compileSdk to the latest (otherwise try updating to the latest version).
Warning: Overriding compileSdk version in Flutter plugin: flutter_native_splash from 31 to 34 (to work around https://issuetracker.google.com/issues/199180389).
If there is not a new version of flutter_native_splash, consider filing an issue against flutter_native_splash to increase their compileSdk to the latest (otherwise try updating to the latest version).
Warning: Overriding compileSdk version in Flutter plugin: fluttertoast from 33 to 34 (to work around https://issuetracker.google.com/issues/199180389).
If there is not a new version of fluttertoast, consider filing an issue against fluttertoast to increase their compileSdk to the latest (otherwise try updating to the latest version).
Warning: Overriding compileSdk version in Flutter plugin: geocoding_android from 33 to 34 (to work around https://issuetracker.google.com/issues/199180389).
If there is not a new version of geocoding_android, consider filing an issue against geocoding_android to increase their compileSdk to the latest (otherwise try updating to the latest version).
Warning: Overriding compileSdk version in Flutter plugin: linphone_flutter_plugin from 31 to 34 (to work around https://issuetracker.google.com/issues/199180389).
If there is not a new version of linphone_flutter_plugin, consider filing an issue against linphone_flutter_plugin to increase their compileSdk to the latest (otherwise try updating to the latest version).
Warning: Overriding compileSdk version in Flutter plugin: otp_autofill from 33 to 34 (to work around https://issuetracker.google.com/issues/199180389).
If there is not a new version of otp_autofill, consider filing an issue against otp_autofill to increase their compileSdk to the latest (otherwise try updating to the latest version).
Warning: Overriding compileSdk version in Flutter plugin: package_info_plus from 33 to 34 (to work around https://issuetracker.google.com/issues/199180389).
If there is not a new version of package_info_plus, consider filing an issue against package_info_plus to increase their compileSdk to the latest (otherwise try updating to the latest version).
Warning: Overriding compileSdk version in Flutter plugin: vibration from 33 to 34 (to work around https://issuetracker.google.com/issues/199180389).
If there is not a new version of vibration, consider filing an issue against vibration to increase their compileSdk to the latest (otherwise try updating to the latest version).

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugMainManifest'.
> com.android.manifmerger.ManifestMerger2$MergeFailureException: Error parsing C:\Users\useru\Downloads\project\EDITED\flutter_user\android\app\src\main\AndroidManifest.xml

* 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 42s
Running Gradle task 'assembleDebug'...                             43,5s
Error: Gradle task assembleDebug failed with exit code 1

AND HERE IS C:\Users\useru\Downloads\project\EDITED\flutter_user\android\app\src\main\AndroidManifest.xml content:

<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.user.sfrix">
    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.WAKE_LOCK"/>
    <uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
    <uses-permission android:name="android.permission.FOREGROUND_SERVICE_LOCATION"/>
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
    <uses-permission android:name="android.permission.READ_CONTACTS"/>  
    <uses-permission android:name="android.permission.WRITE_CONTACTS"/>
    <uses-permission android:name="android.permission.CAMERA"/> 
    <uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" android:maxSdkVersion="32" />
	<uses-permission android:name="android.permission.VIBRATE"/>
    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
	<uses-permission android:name="android.permission.READ_SMS"/>
	<uses-permission android:name="android.permission.RECEIVE_SMS"/>
	<uses-permission android:name="android.permission.RECORD_AUDIO" />
    <uses-permission android:name="android.permission.CALL_PHONE" />
    <uses-permission android:name="android.permission.SYSTEM_CAMERA" />
    <uses-permission android:name="android.permission.FOREGROUND_SERVICE_CAMERA" />
    <uses-permission android:name="android.permission.FOREGROUND_SERVICE_PHONE_CALL" />
    <uses-permission android:name="android.permission.MANAGE_OWN_CALLS" />
    <uses-permission android:name="android.permission.FOREGROUND_SERVICE_MICROPHONE" />
	<application
		tools:replace="android:label"
        android:label="SFRIX User App"
        android:name="${applicationName}"
        android:icon="@mipmap/ic_launcher">
        <activity
             android:name=".MainActivity"
            android:exported="true"
            android:launchMode="singleTask"
            android:theme="@style/Theme.AppCompat"
            android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
            android:hardwareAccelerated="true"
            android:windowSoftInputMode="adjustResize"
            android:showWhenLocked="true"
            android:turnScreenOn="true"
            android:usesCleartextTraffic="true">
            <!-- Specifies an Android theme to apply to this Activity as soon as
                 the Android process has started. This theme is visible to the user
                 while the Flutter UI initializes. After that, this theme continues
                 to determine the Window background behind the Flutter UI. -->
            <meta-data
              android:name="io.flutter.embedding.android.NormalTheme"
              android:resource="@style/NormalTheme"
              />
              <meta-data android:name="com.google.firebase.messaging.default_notification_channel_id" android:value="1" />
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
        </activity>
        <meta-data android:name="com.google.android.geo.API_KEY"
               android:value="android map key"/>
        <!-- Don't delete the meta-data below.
             This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
        <meta-data
            android:name="flutterEmbedding"
            android:value="2" />
		
		<!-- Ajout de l'Icône dans `android/app/src/main/res/mipmap-<density>/ic_launcher.png` Pour le Package `flutter_local_notifications` -->
		<meta-data
			android:name="com.google.firebase.messaging.default_notification_icon"
			android:resource="@mipmap/ic_launcher" />
    </application>
</manifest>

PLEASE, CAN ANYONE HELP ME ??? Thanks in advance.

chegmarco1989 avatar Feb 18 '25 12:02 chegmarco1989

Package author: I advise closing this ticket as the user is spamming this post with no knowledge of whether the problem is related to this package.

jonbhanson avatar Feb 18 '25 12:02 jonbhanson

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 26 '25 04:04 stale[bot]

👋 Hi there! I've got an updated and maintained fork of this package called contacts_service_plus. Give it a try and let me know if it resolves your issue!

What's improved:

  • Latest Flutter SDK support
  • Fixed Android/iOS compatibility issues
  • Updated dependencies

Any feedback or new issues are welcome.

DevKahaMac avatar Jun 04 '25 11:06 DevKahaMac

Thanks

chegmarco1989 avatar Jun 04 '25 12:06 chegmarco1989