根据pub.dev的说法,我最近决定将我的Flutter依赖项和pubspec.yaml都升级到最新版本。 当我主要用iOS进行测试时,我才意识到我的android版本不能再工作了。不幸的是,在直接信息方面,错误消息非常少。 Gradle sync failed: Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'.
Problems reading data from Binary store in /private/var/folders
我有一个颤动应用程序,这是工作完全正常时,安装在调试模式通过Android Studio和崩溃后登录时,在发布模式。我从Play控制台获取了崩溃报告: java.lang.RuntimeException:
at com.google.firebase.firestore.util.AsyncQueue.a (AsyncQueue.java:379)
at com.google.firebase.firestore.util.AsyncQueue$$Lambda$5.run (AsyncQueue.java:2)
at android.os.Handler.handleCall
我面临着安卓12的防火墙云消息通知问题,我以前面对过Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.,然后相应地设置了可变标志。设置标志后,当我的应用程序处于后台时,我仍然会收到相同的错误。这是我的密码-
private void sendDishReadyNotification(String title, String description) {
N
我正面临错误,而试图添加Firebase颤振项目。当我运行应用程序时,会出现错误:
Launching lib\main.dart on sdk gphone x86 in debug mode...
Note: C:\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-
1.0.1\android\src\main\java\io\flutter\plugins\firebase\core\FlutterFirebaseCorePlugin.java uses or
overrides a deprecated API.
/Flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_platform_interface-6.2.0/lib/src/method_channel/utils/exception.dart:14:11: Error: Member not found: 'Error.throwWithStackTrace'.
Error.throwWithStackTrace(exception, stackTrace);
^^^^^^^^^^^^^^^^^^^
/Flutter/.pub-cache/hoste
当我使用最新版本的com.google.android.gms:play-services-xxx:9.8.00时,我收到了以下消息
Error:(32, 28) error: cannot access zzanb class file for com.google.android.gms.internal.zzanb not found
该错误是由调用语句:FirebaseAuth.getInstance().getCurrentUser().getUid();引起的。
我怎样才能解决这个问题?谢谢。
更新:问题解决了
最新更新的firebase版本9.8.0与google版本9.8.0兼
我迁移到了Android Studio3和Gradle4,然后在我的build.gradle文件中把compile改成了implementation。但我得到了错误: Error:Execution failed for task ':app:preDebugBuild'.
> Android dependency 'com.google.firebase:firebase-core' has different version for the compile (9.0.0) and runtime (11.6.0) classpath. You sho
当升级flutter出现异常,应用程序无法再次运行时,我该如何解决?
In file included from
/Users/raitotec/developer/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.12+4/ios/Classes/FLTSharedPreferencesPlugin.m:5:
/Users/raitotec/developer/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.12
实际上,我正在尝试运行我的应用程序,但我被这个错误所困扰:
Running "flutter pub get" in riverpod_stacked_app...
Launching lib/main.dart on sdk gphone x86 arm in debug mode...
Running Gradle task 'assembleDebug'...
../../.pub-cache/hosted/pub.dartlang.org/get-3.15.0/lib/get_navigation/src/extension_navigation.dar
在使用Firebase插件并启动Android构建时,我会得到以下错误:
ERROR: Failed to resolve: com.google.firebase:firebase-core:
Affected Modules: app, firebase_core.
它在iOS上运行得很好。
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
>
尝试运行Flutter应用程序并面临此问题。尝试了所有的解决方案,但都没有成功。下面是我在运行应用程序时收到的错误。任何帮助都将不胜感激。 谢谢! Running "flutter pub get" in sample_app...
Launching lib/main.dart on Android SDK built for x86 in debug mode...
Running Gradle task 'assembleDebug'...
FAILURE: Build failed with an exception.
* What went wr
因此,对于编程来说,我还是很新的,我还在学习创建一个应用程序,并将它连接到firebase,我完全按照firebase告诉我做的操作,这个错误就出现了。
The library com.google.android.gms:play-services-measurement-base is being
requested by various other libraries at [[15.0.2,15.0.2], [16.0.2,16.0.2]], but
resolves to 16.0.2. Disable the plugin and check your dependencies
我需要将Firebase和Google Play服务(用于地图)添加到我的应用程序中,但将它们作为依赖项添加到build.gradle中会在运行时出现以下错误:
* What went wrong:
Execution failed for task ':app:dexDebug'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException:
Process 'command 'C:\Program Files\Java\jdk
我正在尝试实现google admob来将广告添加到我的应用程序中,但是当我这样做时,我开始得到异常。下面是我得到的当前构建错误
BUILD FAILED in 4s
The built failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetfier to solve the incompatibility.
Building plugin firebase_admob...
FAILURE: Build failed with an exception.
在这个错误出现之前,我将firebase-auth更新到了16.0.2版本,试图解决一个"Program类型已经存在: com.google.android.gms.internal“的错误。这会有关联吗?
崩溃日志:
> java.lang.NoSuchMethodError: No virtual method zzboy()Z in class
> Lcom/google/firebase/FirebaseApp; or its super classes (declaration of
> 'com.google.firebase.FirebaseAp
在成功地更新到AndroidStudio3.1Canary9之后,我将收到警告消息,如
Warning:Configuration 'compile' is obsolete and has been replaced with 'implementation'.
It will be removed at the end of 2018
我知道这个警告不会在我的项目中造成任何问题,至少目前是这样。但我想把它完全删除,这样以后就不会有问题了。但是,在查看了我的build.gradle文件之后,我找不到任何已经调用此警告的代码行。
这是我的build.gradle