Skip to content

Commit

Permalink
fix : umeng init failure
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyuanxiao committed Aug 21, 2018
1 parent e38a7e3 commit b628e9c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions library-wxshare/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ dependencies {
implementation 'com.android.support:appcompat-v7:25.3.1'
testImplementation 'junit:junit:4.12'
//友盟数据分析
compile 'com.umeng.sdk:common:1.5.0'
compile 'com.umeng.sdk:analytics:7.5.0'
compile 'com.umeng.sdk:common:1.5.3'
compile 'com.umeng.sdk:analytics:7.5.3'
// compile files('libs/umeng_social_net.jar')
compile files('libs/umeng-sharetool-6.9.3.jar')
compile files('libs/umeng-share-wechat-simplify-6.9.3.jar')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ public class EventUmeng {
public void initUM(Context context, String androidAppKey) {
if (!TextUtils.isEmpty(androidAppKey)) {
// Config.DEBUG = true;
// UMConfigure.setLogEnabled(true);
UMConfigure.init(context, androidAppKey, "umeng", UMConfigure.DEVICE_TYPE_PHONE, "");
MobclickAgent.setDebugMode(DebugableUtil.isDebug());
// MobclickAgent.setDebugMode(DebugableUtil.isDebug());
MobclickAgent.openActivityDurationTrack(false);
MobclickAgent.setCatchUncaughtExceptions(!DebugableUtil.isDebug());
MobclickAgent.setScenarioType(context, MobclickAgent.EScenarioType.E_UM_NORMAL);
Expand Down

0 comments on commit b628e9c

Please sign in to comment.