taontech / githublog

一个基于github issues的博客系统,实时呈现,零依赖,零代码部署,不用打包不用上线。
4 stars 1 forks source link

android studio 一次奇怪的错误 #88

Open taontech opened 1 year ago

taontech commented 1 year ago

在一次自动更新后,出现了gradle插件的升级,按照提示升级后,出现了可以直接连手机调试运行,但是打包APK的时候报错:

android:exported needs to be explicitly specified for <activity>. Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported` when the corresponding component has an intent filter defined

解决办法

Update the version of androidTestImplementation 'androidx.test.ext:junit:1.1.1' to the latest version, like: androidTestImplementation 'androidx.test.ext:junit:1.1.3' from the build.gradle app level.