新建安卓项目错误提示
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`.
解决方法:点击设置
androidStudio项目结构
快捷键
option+command+L//整理代码
control+shift+F//全局搜索
control+option+space//代码提示
android studio 点击左下角的build Variants运行release模式(在.android下编译):
错误信息如下:
Error: The apk for your currently selected variant (app-release.apk) is not signed. Please specify a signing configuration for this variant (release).
//错误:当前所选变体(app release.apk)的apk未签名。请为此变体(版本)指定签名配置。
.android编译下点击gradel按钮,填写签名信息即可