android studio 升级到3.3.1后,提示程序包不存在
原因
主Module--A 引用了其他Moduel--B里的jar库,
只需要把B的dependencies改成如下(implentention改成api)
dependencies {
api files(‘libs/SocialSDK_AtFriends.jar‘)
api files(‘libs/SocialSDK_QQZone_1.jar‘)
api files(‘libs/SocialSDK_QQZone_2.jar‘)
api files(‘libs/SocialSDK_QQZone_3.jar‘)
api files(‘libs/SocialSDK_Sina.jar‘)
api files(‘libs/SocialSDK_UserCenter.jar‘)
api files(‘libs/SocialSDK_WeiXin_1.jar‘)
api files(‘libs/SocialSDK_WeiXin_2.jar‘)
api files(‘libs/SocialSDK_actionbarview.jar‘)
api files(‘libs/SocialSDK_comment.jar‘)
api files(‘libs/SocialSDK_email.jar‘)
api files(‘libs/SocialSDK_facebook_1.jar‘)
api files(‘libs/SocialSDK_facebook_2.jar‘)
api files(‘libs/SocialSDK_instagram.jar‘)
api files(‘libs/SocialSDK_laiwang_1.jar‘)
api files(‘libs/SocialSDK_laiwang_2.jar‘)
api files(‘libs/SocialSDK_like.jar‘)
api files(‘libs/SocialSDK_renren_1.jar‘)
api files(‘libs/SocialSDK_renren_2.jar‘)
api files(‘libs/SocialSDK_scrshot.jar‘)
api files(‘libs/SocialSDK_shake.jar‘)
api files(‘libs/SocialSDK_sms.jar‘)
api files(‘libs/SocialSDK_tencentWB_1.jar‘)
api files(‘libs/SocialSDK_tencentWB_2.jar‘)
api files(‘libs/SocialSDK_tencentWB_3.jar‘)
api files(‘libs/SocialSDK_yixin_1.jar‘)
api files(‘libs/SocialSDK_yixin_2.jar‘)
api files(‘libs/httpmime-4.1.3.jar‘)
api files(‘libs/umeng_social_sdk.jar‘)
}
原文:https://www.cnblogs.com/showker/p/10678733.html