|
/

安卓的新问题

Yy******i7
发布于 5 年前
10155
移动统计 U-App

之前,好像是好的。

可是现在在新的项目里,

我遇到下列问题:

UMConfigure.setLogEnabled(true);

//导致 java.lang.NoClassDefFoundError: Failed resolution of: Lcom/uc/crashsdk/export/ICrashClient;

UMConfigure.init(this, umeng_appkey, umeng_venue, UMConfigure.DEVICE_TYPE_PHONE, "");

//导致 java.lang.NoClassDefFoundError: Failed resolution of: Lcom/efs/sdk/memoryinfo/UMMemoryMonitor;

//导致 java.lang.NoClassDefFoundError: Failed resolution of: Lcom/efs/sdk/launch/LaunchManager;

之前没有这个问题。

proguard规则如下

#umeng yes starts
-keep class com.umeng.** {*;}
-keep class com.uc.crashsdk.** {*;}
-keep class com.efs.sdk.** {*;}

-keepclassmembers class * {
public <init> (org.json.JSONObject);
}

-keepclassmembers enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
}
-keep public class **.R$* {
public static final int *;
}
#umeng yes ends

重新运行了一下以前的项目,发现也是一样的,有很多类是找不到的。

但是不影响运行。现在怎么无法运行了?

我用的是最新版的移动统计sdk。 我已经把这个zip里的所有的*.jar和*.aar都包括进去了。

我发现有这些问题:

Note: com.ta.utdid2.a.a.d: can't find dynamically referenced class com.yunos.baseservice.clouduuid.CloudUUID

Note: com.ta.utdid2.a.a.g: can't find dynamically referenced class android.os.SystemProperties

Note: com.umeng.analytics.AnalyticsConfig: can't find dynamically referenced class com.umeng.analytics.game.GameSdkVersion

Note: com.umeng.analytics.MobclickAgent: can't find dynamically referenced class com.umeng.umcrash.UMCrash

Note: com.umeng.analytics.MobclickAgent: can't find dynamically referenced class com.umeng.umcrash.UMCrash

Note: com.umeng.analytics.pro.ac: can't find dynamically referenced class android.os.SystemProperties

Note: com.umeng.analytics.pro.o: can't find dynamically referenced class com.umeng.umcrash.UMCrashUtils

Note: com.umeng.commonsdk.UMConfigure: can't find dynamically referenced class com.umeng.analytics.game.UMGameAgent

Note: com.umeng.commonsdk.UMConfigure: can't find dynamically referenced class com.umeng.message.MessageSharedPrefs

Note: com.umeng.commonsdk.UMConfigure: can't find dynamically referenced class com.umeng.error.UMError

Note: com.umeng.commonsdk.UMConfigure: can't find dynamically referenced class com.umeng.umcrash.UMCrash

Note: com.umeng.commonsdk.UMConfigure: can't find dynamically referenced class com.umeng.vt.facade.EventFacade

Note: com.umeng.commonsdk.UMConfigure: can't find dynamically referenced class com.umeng.vt.common.VTTracker

Note: com.umeng.commonsdk.UMConfigure: can't find dynamically referenced class com.umeng.cconfig.UMRemoteConfig

Note: com.umeng.commonsdk.internal.c: can't find dynamically referenced class com.umeng.umzid.ZIDManager

Note: com.umeng.commonsdk.statistics.common.DeviceConfig: can't find dynamically referenced class android.app.ActivityThread

Note: com.umeng.commonsdk.utils.UMUtils: can't find dynamically referenced class com.umeng.message.MessageSharedPrefs

Note: com.umeng.commonsdk.utils.UMUtils: can't find dynamically referenced class android.os.SystemProperties

Note: org.repackage.com.meizu.flyme.openidsdk.OpenIdHelper: can't find dynamically referenced class android.app.ActivityThread

Note: org.repackage.com.miui.deviceid.IdentifierManager: can't find dynamically referenced class com.android.id.impl.IdProviderImpl

Note: org.repackage.com.vivo.identifier.IdentifierIdClient: can't find dynamically referenced class android.os.SystemProperties

Note: there were 21 unresolved dynamic references to classes or interfaces.

10个回答
 
5 年前
 
5 年前

运行时说

UMConfigure(30927): --->>> SDK 初始化失败,请检查是否集成umeng-asms-1.2.x.aar库。<<<---

我看了一下,发现*.aar 没有被包括进去。

之后,初始化正常,但是在友盟后台,就是没有看到数据。

 
5 年前

在不用jar和aar的情况下,

现在的问题就是后台看不到内容,目前的日志输出如下:

D/UMLog: 统计SDK常见问题索引贴 详见链接 http://developer.umeng.com/docs/66650/cate/66650
I/UMConfigure: common version is 9.4.4
I/UMConfigure: common type is 0
I/UMConfigure: current appkey is 61e400ece0f9bb492bd18eae, last appkey is 61e400ece0f9bb492bd18eae
I/UMConfigure: channel is venue_a
D/UMLog: 统计SDK常见问题索引贴 详见链接 http://developer.umeng.com/docs/66650/cate/66650
I/UMLog: 统计SDK初始化成功
I/UMLog: umeng inited:61e400ece0f9bb492bd18eae
D/OpenGLRenderer: HWUI GL Pipeline
I/UMLog: 基础组件库完整性自检通过。
I/zygote: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
I/OpenGLRenderer: Initialized EGL, version 1.4
D/OpenGLRenderer: Swap behavior 1
D/MobclickAgent: 延续上一个会话: D1D43023540E2156F960FAFB02455EB9
W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
D/OpenGLRenderer: Swap behavior 0
D/EGL_emulation: eglCreateContext: 0xe98852a0: maj 3 min 0 rcv 3
D/EGL_emulation: eglMakeCurrent: 0xe98852a0: ver 3 0 (tinfo 0xe98833a0)
D/UMLog: 当前发送策略为:启动时发送。详见链接 https://developer.umeng.com/docs/66632/detail/66976?um_channel=sdk
D/EGL_emulation: eglMakeCurrent: 0xe98852a0: ver 3 0 (tinfo 0xe98833a0)

 
5 年前

检查一下你的混淆配置,参考官方文档https://developer.umeng.com/docs/119267/detail/118584#title-0fo-3gc-ulu,然后再进行一下埋点测试。

 
5 年前

请检查混淆配置文档添加完整的混淆配置:

https://developer.umeng.com/docs/119267/detail/118584#h1-u6DF7u6DC6u8BBEu7F6E4

Loading ...
登录社区,分享你的经验