请教一下,请求发送成功了,但是会根据theme样式 要么黑屏 要么白屏,没有正常的那个授权界面 fun wxLogin() : Boolean { val req = SendAuth.Req() req.scope = "snsapi_userinfo" req.state = "123" return wxApi.sendReq(req) } <!-- 微信登录必须的--> <queries> <package android:name="com.tencent.mm" /> </queries> <activity android:name=".wxapi.WXEntryActivity" android:exported="true" android:label="@string/app_name" android:launchMode="singleTask" android:taskAffinity="我自己的包名" android:theme="@android:style/Theme.Light.NoTitleBar.Fullscreen" > </activity>
请出一个Kotlin调用微信登录教程和demohttps://developers.weixin.qq.com/doc/oplatform/Downloads/Android_Resource.html 教程里面没有关于使用Kotlin的说明,最好能有一个调用微信登录的demo
2022-04-12