小编Fre*_*lfe的帖子

FlutterFirebaseCorePlugin.java 使用或覆盖已弃用的 API

好了,所以我跑我的程序不导入火力核心,火力权威性和云公司的FireStore,我的代码运行得很好,但我与火力注册我的应用程序,它仍然运行良好,但只要我进口Firebase_authFirebase_corecloud_Firestore...我得到以下错误

Note: C:\appflutter\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-0.7.0\android\src\main\java\io\flutter\plugins\firebase\core\FlutterFirebaseCorePlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: C:\appflutter\flutter\.pub-cache\hosted\pub.dartlang.org\cloud_firestore-0.16.0\android\src\main\java\io\flutter\plugins\firebase\firestore\streamhandler\TransactionStreamHandler.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
D8: Cannot fit requested classes in a single dex file (# methods: 89543 > 65536)
com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: 
The number of method references in a .dex file cannot exceed 64K.
Run Code Online (Sandbox Code Playgroud)

请帮我。

dart firebase dart-pub flutter flutter-packages

32
推荐指数
4
解决办法
2万
查看次数

未处理的异常:PlatformException(null-error,主机平台为非空返回值返回空值

我看到了很多关于以下错误的问题:\n"[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(null-error, Host platform returned null value for non-null return value ., null, null)”但所有解决方案都不能解决我的问题\n我已按照同上的所有说明进行操作,添加依赖项等等。我的 build.gradles 没问题,但当我运行时,我仍然收到错误。一个月前这对我有用,但现在我不知道这个月发生了什么。

\n
Launching lib\\main.dart on AOSP on IA Emulator in debug mode...\nRunning Gradle task 'assembleDebug'...\nParameter format not correct -\n\xe2\x88\x9a  Built build\\app\\outputs\\flutter-apk\\app-debug.apk.\nInstalling build\\app\\outputs\\flutter-apk\\app-debug.apk...\nDebug service listening on ws://127.0.0.1:50498/Z0uovONnF5A=/ws\nSyncing files to device AOSP on IA Emulator...\nE/flutter ( 8435): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(null-error, Host platform returned null value for non-null return value., null, null)\nE/flutter ( 8435): #0      FirebaseCoreHostApi.optionsFromResource (package:firebase_core_platform_interface/src/pigeon/messages.pigeon.dart:248:7)\nE/flutter ( 8435): <asynchronous suspension>\nE/flutter ( 8435): #1      MethodChannelFirebase.initializeApp …
Run Code Online (Sandbox Code Playgroud)

android firebase android-gradle-plugin flutter

3
推荐指数
1
解决办法
1890
查看次数