Android Studio 长颈鹿 | 2022.3.1 我将项目更新为 gradle 8.0,androidGradlePluginVersion = '8.1.0' 它要求更新 java 版本
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
Run Code Online (Sandbox Code Playgroud)
AS 工作正常
我们正在使用 Appcenter ms 来分发构建,但它不会使用此升级版本来编译构建
从 Appcenter 收到此错误
Failed to apply plugin 'com.android.internal.library'.
> Android Gradle plugin requires Java 17 to run. You are currently using Java 11.
Your current JDK is located in /Users/runner/hostedtoolcache/Java_Temurin-Hotspot_jdk/11.0.19-7/x64/Contents/Home
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`. …Run Code Online (Sandbox Code Playgroud) 我正在使用 React Native 运行 codepush,我能够在 appcenter 上上传 v1.0,但是现在当我再次运行 codepush 时,它会返回“请求被阻止”
我的命令
appcenter codepush release-react -a username/appname -d Staging
Run Code Online (Sandbox Code Playgroud)
输出
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'><html xmlns='http://www.w3.org/1999/xhtml'><head><meta content='text/html; charset=utf-8' http-equiv='content-type'/><style type='text/css'>body { font-family:Arial; margin-left:40px; }img { border:0 none; }#content { margin-left: auto; margin-right: auto }#message h2 { font-size: 20px; font-weight: normal; color: #000000; margin: 34px 0px 0px 0px }#message p { font-size: 13px; color: #000000; margin: 7px 0px 0px 0px }#errorref { font-size: 11px; color: #737373; margin-top: 41px }</style><title>Microsoft</title></head><body><div …Run Code Online (Sandbox Code Playgroud)