簡體   English   中英

Flurry 集成錯誤:找不到符號方法 init()

[英]Flurry Integration Error: Cannot find symbol method init()

在我的應用程序 class 中,在 OnCreate() 中,我添加了以下代碼:

new FlurryAgent.Builder()
                .withDataSaleOptOut(false) //CCPA - the default value is false
                .withCaptureUncaughtExceptions(true)
                .withIncludeBackgroundSessionsInMetrics(true)
                .withLogLevel(Log.VERBOSE)
                .withPerformanceMetrics(FlurryPerformance.ALL)
                .build(context, API_KEY);

此外,在 gradle 中,我添加了類似的實現,

implementation 'com.flurry.android:analytics:12.11.0'

現在,當我嘗試在方法中添加 FlurryAgent.init(Context, String) 時,我收到錯誤“找不到符號方法 init(Context, String)。FlurryAgent.setLogEnabled(True )。

這是我第一次使用 Flurry。 誰能指導我?

FlurryAgent.init(Context, String)方法已從 Flurry SDK 中刪除。 您應該使用FlurryAgent.Builder()...build(Context, String)來初始化 Flurry。

看起來您已經在這里使用FlurryAgent.Builder.build 您無需再次使用FlurryAgent.init

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM