我正在使用Facebook营销。但它显示出这种启发
原因:java.lang.ClassNotFoundException:找不到类
"com.facebook.appevents.InternalAppEventsLogger" on path: DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/com.sugaronly.sugaronly-NlRH5joNmKqTTw0NxLNWuw==/base.apk"],nativeLibraryDirectories=[/data/app/com.sugaronly.sugaronly-NlRH5joNmKqTTw0NxLNWuw==/lib/arm64, /system/lib64]]
成绩文件:-
implementation 'com.facebook.android:facebook-android-sdk:[4,5)'
implementation 'com.facebook.android:facebook-login:[4,5)'
implementation 'com.facebook.android:facebook-core:[4,5)'
implementation 'com.facebook.android:facebook-marketing:[4,5)'
Android端的实现代码
setAutoLogAppEventsEnabled(true);
AppEventsLogger logger = AppEventsLogger.newLogger(this);
logger.logEvent(AppEventsConstants.EVENT_NAME_X);