1、app页面显示项目名称,不符合规范
处理方法:将themes.xml里的<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">改为
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
修改之前的代码:<style name="Theme.Test" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
修改之后的代码:
<style name="Theme.Test" parent="Theme.MaterialComponents.DayNight.NokActionBar">
2、
Build file 'E:\androidfiles\Menu\Menu\app\build.gradle' line: 2
An exception occurred applying plugin request [id: 'com.android.application']
> Failed to apply plugin 'com.android.internal.application'.
> Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8.
You can try some of the following options:
- changing the IDE settings.
- changing the JAVA_HOME environment variable.
- changing `org.gradle.java.home` in `gradle.properties`.
* Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Exception is:
org.gradle.api.plugins.InvalidPluginException: An exception occurred applying plugin request [id: 'com.android.application']