sinaweibosdk / weibo_android_sdk

新浪微博 Android SDK
1.83k stars 1.19k forks source link

Android 12 适配 #600

Closed FOnlyJack closed 2 months ago

FOnlyJack commented 3 years ago

Task :app:processDebugMainManifest FAILED E:\2021518\wnsd_android\app\src\main\AndroidManifest.xml:12:9-16:45 Warning: activity#com.sina.weibo.sdk.web.WebActivity@tools:configChanges was tagged at AndroidManifest.xml:12 to replace other declarations but no other declaration present E:\2021518\wnsd_android\app\src\main\AndroidManifest.xml:17:9-22:45 Warning: activity#com.sina.weibo.sdk.share.ShareTransActivity@tools:configChanges was tagged at AndroidManifest.xml:17 to replace other declarations but no other declaration present E:\2021518\wnsd_android\app\src\main\AndroidManifest.xml:23:9-28:45 Warning: activity#com.sina.weibo.sdk.share.ShareStoryActivity@tools:configChanges was tagged at AndroidManifest.xml:23 to replace other declarations but no other declaration present E:\2021518\wnsd_android\app\src\main\AndroidManifest.xml:29:9-34:45 Warning: activity#com.sina.weibo.sdk.share.ShareChatActivity@tools:configChanges was tagged at AndroidManifest.xml:29 to replace other declarations but no other declaration present E:\2021518\wnsd_android\app\src\main\AndroidManifest.xml:35:9-52:20 Warning: activity#com.sina.weibo.sdk.share.ShareResultActivity@tools:configChanges was tagged at AndroidManifest.xml:35 to replace other declarations but no other declaration present E:\2021518\wnsd_android\app\src\main\AndroidManifest.xml Error: android:exported needs to be explicitly specified for . Apps targeting Android 12 and higher are required to specify an explicit value for android:exported when the correspon ding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details. E:\2021518\wnsd_android\app\src\main\AndroidManifest.xml Error: android:exported needs to be explicitly specified for . Apps targeting Android 12 and higher are required to specify an explicit value for android:exported when the correspon ding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details.

listensong commented 3 years ago

我也遇到这个问题,在没有官方sdk升级的时候,我是用压缩软件打开open default aar 文件。 然后直接改动里面的AndroidManifest.xml文件,自己加上 android:exported='true'. 然后保存。。。 这样可以避免编译错误,不影响适配先吧。 功能好像也没什么影响。

FOnlyJack commented 3 years ago

我也遇到这个问题,在没有官方sdk升级的时候,我是用压缩软件打开open default aar 文件。 然后直接改动里面的AndroidManifest.xml文件,自己加上 android:exported='true'. 然后保存。。。 这样可以避免编译错误,不影响适配先吧。 功能好像也没什么影响。

我用的MobTech第三方分享 没有用微博原生sdk,直接改完导入会有冲突的

FOnlyJack commented 3 years ago

我也遇到这个问题,在没有官方sdk升级的时候,我是用压缩软件打开open default aar 文件。 然后直接改动里面的AndroidManifest.xml文件,自己加上 android:exported='true'. 然后保存。。。 这样可以避免编译错误,不影响适配先吧。 功能好像也没什么影响。

我用的MobTech第三方分享 没有用微博原生sdk,直接改完导入会冲突吧,我再试试吧

FOnlyJack commented 3 years ago

我也遇到这个问题,在没有官方sdk升级的时候,我是用压缩软件打开open default aar 文件。 然后直接改动里面的AndroidManifest.xml文件,自己加上 android:exported='true'. 然后保存。。。 这样可以避免编译错误,不影响适配先吧。 功能好像也没什么影响。

Installation failed due to: 'Failed to commit install session 570793660 with command cmd package install-commit 570793660. Error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED: Failed parse during installPackageLI: /data/app/vmdl570793660.tmp/base.apk (at Binary XML file line #1356): cn.sharesdk.tencent.qq.ReceiveActivity: Targeting S+ (version 31 and above) requires that an explicit value for android:exported be defined when intent filters are present' 这个问题遇到过吗

listensong commented 3 years ago

我也遇到这个问题,在没有官方sdk升级的时候,我是用压缩软件打开open default aar 文件。 然后直接改动里面的AndroidManifest.xml文件,自己加上 android:exported='true'. 然后保存。。。 这样可以避免编译错误,不影响适配先吧。 功能好像也没什么影响。

Installation failed due to: 'Failed to commit install session 570793660 with command cmd package install-commit 570793660. Error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED: Failed parse during installPackageLI: /data/app/vmdl570793660.tmp/base.apk (at Binary XML file line #1356): cn.sharesdk.tencent.qq.ReceiveActivity: Targeting S+ (version 31 and above) requires that an explicit value for android:exported be defined when intent filters are present' 这个问题遇到过吗

这个应该是share sdk 里,对Activity的清单文件的配置没有显式的配置 android:exported 吧。 一样的问题。

listensong commented 3 years ago

我也遇到这个问题,在没有官方sdk升级的时候,我是用压缩软件打开open default aar 文件。 然后直接改动里面的AndroidManifest.xml文件,自己加上 android:exported='true'. 然后保存。。。 这样可以避免编译错误,不影响适配先吧。 功能好像也没什么影响。

Installation failed due to: 'Failed to commit install session 570793660 with command cmd package install-commit 570793660. Error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED: Failed parse during installPackageLI: /data/app/vmdl570793660.tmp/base.apk (at Binary XML file line #1356): cn.sharesdk.tencent.qq.ReceiveActivity: Targeting S+ (version 31 and above) requires that an explicit value for android:exported be defined when intent filters are present' 这个问题遇到过吗

这个安装错误我到是没有遇到过,只能根据日志猜测了。

xinbot commented 1 year ago

这个问题是需要官方升级SDK才能正确解决么?