我正在使用Applovin在我的flutter应用程序中实现广告,每当我运行应用程序时,我都会收到这个错误



两个月前,我将AppLovin集成到了我的flutter应用程序中,它运行得很好。上周我尝试运行该应用程序,但出现了此错误。

C:Flutter sdkflutter.pub-cachehostedpub.dartlang.orgflutter_applovin_max-2.1.2androidsrcmainjavadevioriflutter_applovin_maxFlutterApplovinMaxPlugin.java:80: error: cannot find symbol
AppLovinPrivacySettings.setHasUserConsent( call.argument("HasConsent"), context );
^
symbol:   variable AppLovinPrivacySettings
location: class FlutterApplovinMaxPlugin
C:Flutter sdkflutter.pub-cachehostedpub.dartlang.orgflutter_applovin_max-2.1.2androidsrcmainjavadevioriflutter_applovin_maxFlutterApplovinMaxPlugin.java:81: error: cannot find symbol
AppLovinPrivacySettings.setIsAgeRestrictedUser( call.argument("IsAgeRestricted"), context );
^
symbol:   variable AppLovinPrivacySettings
location: class FlutterApplovinMaxPlugin
C:Flutter sdkflutter.pub-cachehostedpub.dartlang.orgflutter_applovin_max-2.1.2androidsrcmainjavadevioriflutter_applovin_maxFlutterApplovinMaxPlugin.java:82: error: cannot find symbol
AppLovinPrivacySettings.setDoNotSell( call.argument("DoNotSell"), context );
^
symbol:   variable AppLovinPrivacySettings
location: class FlutterApplovinMaxPlugin
Note: C:Flutter sdkflutter.pub-cachehostedpub.dartlang.orgflutter_applovin_max-2.1.2androidsrcmainjavadevioriflutter_applovin_maxFlutterApplovinMaxPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
3 errors
2
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':flutter_applovin_max:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 5m 51s
Exception: Gradle task assembleDebug failed with exit code 1

使用这个applovin_max插件,它是官方的applovin max的Flutter插件。

相关内容

  • 没有找到相关文章

最新更新