flutter Google maps eroor:找不到providerinstaller的本地模块描述符类

如何解决flutter Google maps eroor:找不到providerinstaller的本地模块描述符类

我的项目在三星 Galaxy 平板电脑 A5 上运行良好。我尝试将我的项目用于另一款三星平板电脑。它不起作用,因为 android 版本是 3.1。然后我升级了最新的 androide 版本,但我遇到了这个错误。现在,项目不适用于任何设备。我也试过霍尼韦尔的设备,但没有用。

医生 -v

[√] Flutter (Channel master,2.2.0-11.0.pre.103,on Microsoft Windows [Version 10.0.19042.928],locale tr-TR)
    • Flutter version 2.2.0-11.0.pre.103 at C:\src\flutter_windows_1.22.4-stable\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision f0c9710493 (2 days ago),2021-04-13 20:29:40 -0500
    • Engine revision 04cd0db032
    • Dart version 2.13.0 (build 2.13.0-232.0.dev)

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at C:\sdk
    • Platform android-30,build-tools 30.0.2
    • ANDROID_SDK_ROOT = C:\sdk
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java       
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Android Studio (version 4.1.0)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[√] VS Code (version 1.55.2)
    • VS Code at C:\Users\mehmet\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.21.0

[√] Connected device (3 available)
    • SM P550 (mobile) • 9393c84e1050b21d • android-arm    • Android 7.1.1 (API 25)
    • Chrome (web)     • chrome           • web-javascript • Google Chrome 90.0.4430.72
    • Edge (web)       • edge             • web-javascript • Microsoft Edge 89.0.774.76

• No issues found!

build.gradle

def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
    localPropertiesFile.withReader('UTF-8') { reader ->
        localProperties.load(reader)
    }
}

def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null) {
    throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
}

def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
    flutterVersionCode = '1'
}

def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
    flutterVersionName = '1.0'
}

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
apply plugin: 'com.google.gms.google-services'


android {
    compileSdkVersion 30
    buildToolsVersion "29.0.2"

    sourceSets {
        main.java.srcDirs += 'src/main/kotlin'
    }

    defaultConfig {
        // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
        applicationId "com.example.firebase"
        minSdkVersion 24
        targetSdkVersion 30
        multiDexEnabled true
        versionCode flutterVersionCode.toInteger()
        versionName flutterVersionName
    }

    buildTypes {
        release {
            // TODO: Add your own signing config for the release build.
            // Signing with the debug keys for now,so `flutter run --release` works.
            
            signingConfig signingConfigs.debug
            //önceden proguardFiles getDefaultProguardFile('proguard-android.txt'),'proguard-rules.pro' yoktu yeni eklendi ve signingConfig signingConfigs.debug idi  ve useProguard true yoktu
        }
    }
}

flutter {
    source '../..'
}

dependencies {
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
    implementation 'com.android.support:multidex:1.0.3'
    implementation platform('com.google.firebase:firebase-bom:27.0.0')
    implementation 'com.google.firebase:firebase-analytics'
    //implementation 'com.google.android.gms:play-services-location:18.0.0'
    //implementation 'com.google.android.gms:play-services-ads:20.0.0'
    //implementation 'com.google.android.gms:play-services:12.0.1'
   
}

AndroidManifest.xml

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.firebase">
    
  <uses-permission android:name="android.permission.INTERNET"/>
  <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
  <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
  <uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />
  <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />



   <application
        android:label="firebase"
        android:icon="@mipmap/ic_launcher">
        <meta-data android:name="com.google.android.geo.API_KEY"
               android:value="AIzaSyAQiGmvj3eBaoeOCRiGnGb26FTZbGqoU2M"
                        
               />
              
        <activity
            android:name=".MainActivity"
            android:launchMode="singleTop"
            android:theme="@style/LaunchTheme"
            android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
            android:hardwareAccelerated="true"
            android:windowSoftInputMode="adjustResize">
            <!-- 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"
              />
            <!-- Displays an Android View that continues showing the launch screen
                 Drawable until Flutter paints its first frame,then this splash
                 screen fades out. A splash screen is useful to avoid any visual
                 gap between the end of Android's launch screen and the painting of
                 Flutter's first frame. -->
            <meta-data
              android:name="io.flutter.embedding.android.SplashScreenDrawable"
              android:resource="@drawable/launch_background"
              />
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
        </activity>
        <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">
        <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>

        <!-- 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" />
    </application>
</manifest>

三星 Galaxy Tab a5 上的错误:

W/DynamiteModule(14840): Local module descriptor class for providerinstaller not found.
I/DynamiteModule(14840): Considering local module providerinstaller:0 and remote module providerinstaller:0
W/ProviderInstaller(14840): Failed to load providerinstaller module: No acceptable module found. Local version is 0 and remote version is 0.
D/ConnectivityManager(14840): requestNetwork; CallingUid : 10155,CallingPid : 14840
V/NativeCrypto(14840): Registering com/google/android/gms/org/conscrypt/NativeCrypto's 287 native methods...
I/ProviderInstaller(14840): Installed default security provider GmsCore_OpenSSL
W/art     (14840): Before Android 4.1,method double java.util.concurrent.ThreadLocalRandom.internalNextDouble(double,double) would have incorrectly overridden the package-private method in java.util.Random
W/art     (14840): Before Android 4.1,method int java.util.concurrent.ThreadLocalRandom.internalNextInt(int,int) would have incorrectly overridden the package-private method in java.util.Random
W/art     (14840): Before Android 4.1,method long java.util.concurrent.ThreadLocalRandom.internalNextLong(long,long) would have incorrectly overridden the package-private method in java.util.Random
D/ConnectivityManager(14840): requestNetwork; CallingUid : 10155,CallingPid : 14840
I/zzbz    (14840): Making Creator dynamically
I/DynamiteModule(14840): Considering local module com.google.android.gms.maps_dynamite:0 and remote module com.google.android.gms.maps_dynamite:203112999
I/DynamiteModule(14840): Selected remote version of com.google.android.gms.maps_dynamite,version >= 203112999
V/DynamiteModule(14840): Dynamite loader version >= 2,using loadModule2NoCrashUtils
W/System  (14840): ClassLoader referenced unknown path: /data/user_de/0/com.google.android.gms/app_chimera/m/00000006/n/armeabi-v7a
W/System  (14840): ClassLoader referenced unknown path: /data/user_de/0/com.google.android.gms/app_chimera/m/00000006/n/armeabi
I/Google Maps Android API(14840): Google Play services client version: 12451000
I/Google Maps Android API(14840): Google Play services package version: 211213015

它在霍尼韦尔设备上的错误。

W/System  (  660): Ignoring header X-Firebase-Locale because its value was null.
W/DynamiteModule(  660): Local module descriptor class for providerinstaller not found.
I/DynamiteModule(  660): Considering local module providerinstaller:0 and remote module providerinstaller:0
W/ProviderInstaller(  660): Failed to load providerinstaller module: No acceptable module found. Local version is 0 and remote version is 0.
2
I/xample.firebas(  660): The ClassLoaderContext is a special shared library.
V/NativeCrypto(  660): Registering com/google/android/gms/org/conscrypt/NativeCrypto's 287 native methods...
W/xample.firebas(  660): Accessing hidden method Ljava/security/spec/ECParameterSpec;->getCurveName()Ljava/lang/String; (greylist,reflection,allowed)
I/ProviderInstaller(  660): Installed default security provider GmsCore_OpenSSL
W/xample.firebas(  660): Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist,linking,allowed)
W/xample.firebas(  660): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist,allowed)
W/xample.firebas(  660): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist,allowed)
W/xample.firebas(  660): Accessing hidden method Lsun/misc/Unsafe;->getLong(Ljava/lang/Object;J)J (greylist,core-platform-api,allowed)
W/xample.firebas(  660): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist,allowed)
W/xample.firebas(  660): Accessing hidden method Lsun/misc/Unsafe;->putLong(Ljava/lang/Object;JJ)V (greylist,allowed)
W/xample.firebas(  660): Accessing hidden method Lsun/misc/Unsafe;->allocateInstance(Ljava/lang/Class;)Ljava/lang/Object; (greylist,allowed)
W/xample.firebas(  660): Accessing hidden method Llibcore/io/Memory;->peekLong(JZ)J (greylist,allowed)
W/xample.firebas(  660): Accessing hidden method Llibcore/io/Memory;->pokeLong(JJZ)V (greylist,allowed)
W/xample.firebas(  660): Accessing hidden method Llibcore/io/Memory;->pokeInt(JIZ)V (greylist,allowed)
W/xample.firebas(  660): Accessing hidden method Llibcore/io/Memory;->peekInt(JZ)I (greylist,allowed)
W/xample.firebas(  660): Accessing hidden method Llibcore/io/Memory;->pokeByte(JB)V (greylist,allowed)
W/xample.firebas(  660): Accessing hidden method Llibcore/io/Memory;->peekByte(J)B (greylist,allowed)
W/xample.firebas(  660): Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist,allowed)
I/zzbz    (  660): Making Creator dynamically
I/DynamiteModule(  660): Considering local module com.google.android.gms.maps_dynamite:0 and remote module com.google.android.gms.maps_dynamite:203112999
I/DynamiteModule(  660): Selected remote version of com.google.android.gms.maps_dynamite,version >= 203112999
V/DynamiteModule(  660): Dynamite loader version >= 2,using loadModule2NoCrashUtils
W/Gralloc3(  660): allocator 3.x is not supported
I/DynamiteLoaderV2Impl(  660): [71] Mapsdynamite
I/Google Maps Android API(  660): Google Play services client version: 12451000
I/Google Maps Android API(  660): Google Play services package version: 210915038
W/xample.firebas(  660): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist,allowed)
I/DynamiteLoaderV2Impl(  660): [71] Googlecertificates
W/xample.firebas(  660): ClassLoaderContext type mismatch. expected=PCL,found=DLC (PCL[] | DLC[];PCL[/data/app/com.example.firebase-fC2M-WKgYfYUSqPsGwG2Ig==/base.apk*2265824598:/data/app/com.example.firebase-fC2M-WKgYfYUSqPsGwG2Ig==/base.apk!classes2.dex*1844131731:/data/app/com.example.firebase-fC2M-WKgYfYUSqPsGwG2Ig==/base.apk!classes3.dex*4204799996:/data/app/com.example.firebase-fC2M-WKgYfYUSqPsGwG2Ig==/base.apk!classes4.dex*497396354:/data/app/com.example.firebase-fC2M-WKgYfYUSqPsGwG2Ig==/base.apk!classes5.dex*2323125583:/data/app/com.example.firebase-fC2M-WKgYfYUSqPsGwG2Ig==/base.apk!classes6.dex*2029835607:/data/app/com.example.firebase-fC2M-WKgYfYUSqPsGwG2Ig==/base.apk!classes7.dex*1380660130:/data/app/com.example.firebase-fC2M-WKgYfYUSqPsGwG2Ig==/base.apk!classes8.dex*168506687:/data/app/com.example.firebase-fC2M-WKgYfYUSqPsGwG2Ig==/base.apk!classes9.dex*779558648:/data/app/com.example.firebase-fC2M-WKgYfYUSqPsGwG2Ig==/base.apk!classes10.dex*3951521473:/data/app/com.example.firebase-fC2M-WKgYfYUSqPsGwG2Ig==/base.apk!classe
W/xample.firebas(  660): Found duplicate classes,falling back to extracting from APK : /data/user_de/0/com.google.android.gms/app_chimera/m/0000000e/GoogleCertificates.apk
W/xample.firebas(  660): NOTE: This wastes RAM and hurts startup performance.
W/xample.firebas(  660): Found duplicated class when checking oat files: 'Landroid/support/v4/app/RemoteActionCompatParcelizer;' in /data/app/com.example.firebase-fC2M-WKgYfYUSqPsGwG2Ig==/base.apk and /data/user_de/0/com.google.android.gms/app_chimera/m/0000000e/GoogleCertificates.apk
W/xample.firebas(  660):

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


使用本地python环境可以成功执行 import pandas as pd import matplotlib.pyplot as plt # 设置字体 plt.rcParams[&#39;font.sans-serif&#39;] = [&#39;SimHei&#39;] # 能正确显示负号 p
错误1:Request method ‘DELETE‘ not supported 错误还原:controller层有一个接口,访问该接口时报错:Request method ‘DELETE‘ not supported 错误原因:没有接收到前端传入的参数,修改为如下 参考 错误2:cannot r
错误1:启动docker镜像时报错:Error response from daemon: driver failed programming external connectivity on endpoint quirky_allen 解决方法:重启docker -&gt; systemctl r
错误1:private field ‘xxx‘ is never assigned 按Altʾnter快捷键,选择第2项 参考:https://blog.csdn.net/shi_hong_fei_hei/article/details/88814070 错误2:启动时报错,不能找到主启动类 #
报错如下,通过源不能下载,最后警告pip需升级版本 Requirement already satisfied: pip in c:\users\ychen\appdata\local\programs\python\python310\lib\site-packages (22.0.4) Coll
错误1:maven打包报错 错误还原:使用maven打包项目时报错如下 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-resources)
错误1:服务调用时报错 服务消费者模块assess通过openFeign调用服务提供者模块hires 如下为服务提供者模块hires的控制层接口 @RestController @RequestMapping(&quot;/hires&quot;) public class FeignControl
错误1:运行项目后报如下错误 解决方案 报错2:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project sb 解决方案:在pom.
参考 错误原因 过滤器或拦截器在生效时,redisTemplate还没有注入 解决方案:在注入容器时就生效 @Component //项目运行时就注入Spring容器 public class RedisBean { @Resource private RedisTemplate&lt;String
使用vite构建项目报错 C:\Users\ychen\work&gt;npm init @vitejs/app @vitejs/create-app is deprecated, use npm init vite instead C:\Users\ychen\AppData\Local\npm-
参考1 参考2 解决方案 # 点击安装源 协议选择 http:// 路径填写 mirrors.aliyun.com/centos/8.3.2011/BaseOS/x86_64/os URL类型 软件库URL 其他路径 # 版本 7 mirrors.aliyun.com/centos/7/os/x86
报错1 [root@slave1 data_mocker]# kafka-console-consumer.sh --bootstrap-server slave1:9092 --topic topic_db [2023-12-19 18:31:12,770] WARN [Consumer clie
错误1 # 重写数据 hive (edu)&gt; insert overwrite table dwd_trade_cart_add_inc &gt; select data.id, &gt; data.user_id, &gt; data.course_id, &gt; date_format(
错误1 hive (edu)&gt; insert into huanhuan values(1,&#39;haoge&#39;); Query ID = root_20240110071417_fe1517ad-3607-41f4-bdcf-d00b98ac443e Total jobs = 1
报错1:执行到如下就不执行了,没有显示Successfully registered new MBean. [root@slave1 bin]# /usr/local/software/flume-1.9.0/bin/flume-ng agent -n a1 -c /usr/local/softwa
虚拟及没有启动任何服务器查看jps会显示jps,如果没有显示任何东西 [root@slave2 ~]# jps 9647 Jps 解决方案 # 进入/tmp查看 [root@slave1 dfs]# cd /tmp [root@slave1 tmp]# ll 总用量 48 drwxr-xr-x. 2
报错1 hive&gt; show databases; OK Failed with exception java.io.IOException:java.lang.RuntimeException: Error in configuring object Time taken: 0.474 se
报错1 [root@localhost ~]# vim -bash: vim: 未找到命令 安装vim yum -y install vim* # 查看是否安装成功 [root@hadoop01 hadoop]# rpm -qa |grep vim vim-X11-7.4.629-8.el7_9.x
修改hadoop配置 vi /usr/local/software/hadoop-2.9.2/etc/hadoop/yarn-site.xml # 添加如下 &lt;configuration&gt; &lt;property&gt; &lt;name&gt;yarn.nodemanager.res