Skip to content

"Upgrading pre 1.12" Android instructions causes Android crashes as written #47921

@niypoo

Description

@niypoo

my application was work as good with out any issues but after upgrade to flutter 1.12 form here

I'm facing a lot of issue with dependences like

MissingPluginException(No implementation found for method init on channel plugins.flutter.io/google_sign_in)

and also this issue with flutter_goolge_map

PlatformException(error, java.lang.IllegalStateException: Trying to create a platform view of unregistered type: plugins.flutter.io/google_maps E/flutter ( 8262): at io.flutter.plugin.platform.PlatformViewsController$1.createPlatformView(PlatformViewsController.java:91)

even the google map work with the same key on ios and android before upgrade

pubspec.yaml
dependencies: flutter: sdk: flutter flutter_localizations: sdk: flutter cupertino_icons: ^0.1.2 flutter_local_notifications: ^0.8.4+3 cached_network_image: ^2.0.0-rc intl: ^0.16.0 flutter_signin_button: ^1.0.0 provider: ^3.1.0+1 cloud_firestore: ^0.12.10+2 firebase_auth: ^0.14.0+5 firebase_messaging: ^6.0.2 firebase_dynamic_links: ^0.5.0+8 google_sign_in: ^4.0.11 google_maps_flutter: ^0.5.21+15 share: ^0.6.3+3 speech_to_text: ^0.7.0 flare_flutter: ^1.7.3 flutter_slidable: ^0.5.4 http: ^0.12.0+2 flutter_svg: ^0.15.0 flutter_sticky_header: ^0.4.0 shared_preferences: ^0.5.6 sqflite: ^1.2.0 argon_buttons_flutter: ^1.0.2 flutter_spinkit: ^4.1.1+1 flare_splash_screen: ^3.0.0 flutter_translate: ^1.5.7 flutter_background_geolocation: ^1.5.0 geolocator: ^5.1.5 in_app_purchase: ^0.2.2+4 background_fetch: ^0.4.0 not uses anymore auto_size_text: ^2.1.0 jiffy: ^2.1.2 flutter_facebook_login: ^3.0.0 path: ^1.6.4 google_places_picker: ^2.0.2+2

androidManifest.xml


  <manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    package="come.example.appid">

    <uses-permission android:name="android.permission.INTERNET"/>
    <!-- Speech To Text configration -->
    <uses-permission android:name="android.permission.RECORD_AUDIO"/>
    <!-- Geolocator Configration Start -->
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
    <!-- Geolocator Configration end -->
    <!-- Local Notification -->
    <uses-permission android:name="android.permission.VIBRATE" />
    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
    <!-- Local Notification -->

    <application
        tools:replace="android:label"
        android:label="appname"
        android:icon="@mipmap/launcher_icon">

        <!-- Google Maps -->
        <meta-data android:name="com.google.android.geo.API_KEY"
             android:value="APIKeyyyyyyyyyyyy-xxxxxxxx"/>

        <!-- Google Maps -->
        <meta-data
            android:name="com.google.firebase.messaging.default_notification_channel_id"
            android:value="@string/default_notification_channel_id"/>

        <!-- Facebook Configration Start -->
        <!-- <meta-data android:name="com.facebook.sdk.ApplicationId"
            android:value="@string/facebook_app_id"/> -->


        <activity android:name="com.facebook.FacebookActivity"
            android:configChanges=
                    "keyboard|keyboardHidden|screenLayout|screenSize|orientation"
            android:label="@string/app_name" />

        <activity
            android:name="com.facebook.CustomTabActivity"
            android:exported="true">

            <!-- FCM Configration start -->
            <intent-filter>
                <action android:name="FLUTTER_NOTIFICATION_CLICK" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
            <!-- FCM Configration end -->

            <intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
                <data android:scheme="@string/fb_login_protocol_scheme" />
            </intent-filter>
        </activity>
        <!-- Facebook Configration end -->

        <!-- Local Notification -->
        <receiver android:name="com.dexterous.flutterlocalnotifications.ScheduledNotificationReceiver" />
        <receiver android:name="com.dexterous.flutterlocalnotifications.ScheduledNotificationBootReceiver">
            <intent-filter>
                <action android:name="android.intent.action.BOOT_COMPLETED"></action>
            </intent-filter>
        </receiver>


        <activity
            android:name="io.flutter.embedding.android.FlutterActivity"
            android:theme="@style/LaunchTheme"
            android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
            android:hardwareAccelerated="true"
            android:windowSoftInputMode="adjustResize">

            <!-- Specify that the launch screen should continue being displayed -->
            <!-- until Flutter renders its first frame. -->
            <meta-data
                android:name="io.flutter.embedding.android.SplashScreenDrawable"
                android:resource="@drawable/launch_background" />

            <!-- Theme to apply as soon as Flutter begins rendering frames -->
            <meta-data
                android:name="io.flutter.embedding.android.NormalTheme"
                android:resource="@style/NormalTheme"
                />

            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
        </activity>


        <meta-data
            android:name="flutterEmbedding"
            android:value="2" />

    </application>
</manifest>

and more than once like sqflite , flutter_facebook_login and google_places_picker , i did this instructor here.

#46807
but no fix still issues existed .

this photo for issue
https://ibb.co/qpCYgt2

flutter --version Flutter 1.12.13+hotfix.6 • channel unknown • unknown source Framework • revision 18cd7a3601 (2 weeks ago) • 2019-12-11 06:35:39 -0800 Engine • revision 2994f7e1e6 Tools • Dart 2.7.0
I'm trying on android 10 emulator and 9 on my Samsung device

Metadata

Metadata

Assignees

Labels

c: regressionIt was better in the past than it is nowpackageflutter/packages repository. See also p: labels.platform-androidAndroid applications specifically

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions