0

运行颤振运行时在 facebookAuth 上出现错误。

以下是错误信息:

    Launching lib/main.dart on AOSP on IA Emulator in debug mode...
../../../../.pub-cache/hosted/pub.dartlang.org/flutter_facebook_auth-3.4.0/lib/flutter_facebook_auth.dart:8:7: Error: The non-abstract class 'FacebookAuth' is missing implementations for these members:
 - FacebookAuthPlatform.autoLogAppEventsEnabled                         
 - FacebookAuthPlatform.isAutoLogAppEventsEnabled                       
Try to either                                                           
 - provide an implementation,                                           
 - inherit an implementation from a superclass or mixin,                
 - mark the class as abstract, or                                       
 - provide a 'noSuchMethod' implementation.                             
                                                                        
class FacebookAuth implements FacebookAuthPlatform {                    
      ^^^^^^^^^^^^                                                      
../../../../.pub-cache/hosted/pub.dartlang.org/flutter_facebook_auth_platform_interface-2.7.0/lib/src/facebook_auth_plaftorm.dart:75:16: Context: 'FacebookAuthPlatform.autoLogAppEventsEnabled' is defined here.
  Future<void> autoLogAppEventsEnabled(bool enabled);                   
               ^^^^^^^^^^^^^^^^^^^^^^^                                  
../../../../.pub-cache/hosted/pub.dartlang.org/flutter_facebook_auth_platform_interface-2.7.0/lib/src/facebook_auth_plaftorm.dart:78:20: Context: 'FacebookAuthPlatform.isAutoLogAppEventsEnabled' is defined here.
  Future<bool> get isAutoLogAppEventsEnabled;                           
                   ^^^^^^^^^^^^^^^^^^^^^^^^^                            
                                                                        
                                                                        
FAILURE: Build failed with an exception.       

                     

已经清除 [username]/pud-cache 下的 .pub-cache 仍然没有运气。我尝试删除 pubspec.lock 并再次运行“flutter pub get”,但仍然是这个 facebook 错误。

感谢任何帮助!

最佳 Rgds,Jm

4

0 回答 0