InternalAppEventsLogger中的NoClassDefFoundError

时间:2019-04-11 10:54:41

标签: android facebook noclassdeffounderror facebook-sdk-4.0 facebook-sdk-4.x

我正在使用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);

0 个答案:

没有答案