我正在尝试实施以下Facebook SDK标准活动:
/**
* This function assumes logger is an instance of AppEventsLogger and has been
* created using AppEventsLogger.newLogger() call.
*/
public void logSubscribeEvent (String orderId, String currency, double price) {
Bundle params = new Bundle();
params.putString(AppEventsConstants.EVENT_PARAM_ORDER_ID, orderId);
params.putString(AppEventsConstants.EVENT_PARAM_CURRENCY, currency);
logger.logEvent(AppEventsConstants.EVENT_NAME_SUBSCRIBE, price, params);
}
定义为here。
但出现以下错误:
我认为无法导入Facebook库来解决此问题。
任何解决方案?
谢谢!
implementation 'com.facebook.android:facebook-android-sdk:[5,6)'