gpt4 book ai didi

java - CommandInvokationFailure:Gradle构建失败。打开JDK错误

转载 作者:行者123 更新时间:2023-12-03 06:32:58 24 4
gpt4 key购买 nike

enter image description here
圣16
或将该项目的minSdk版本提高到至少19,
或使用tools:overrideLibrary =“com.unity3d.ads”强制使用(可能导致运行时失败)

  • 尝试:
    使用--stacktrace选项运行以获取堆栈跟踪。使用--info或--debug选项运行,以获取更多日志输出。与--scan一起运行以获取完整的见解。
  • https://help.gradle.org上获得更多帮助

  • 6秒内失败
    ]
    标准输出[

    Configure project :Exception while marshalling C:\Program Files\Unity\Hub\Editor\2019.3.2f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\build-tools\28.0.3\package.xml. Probably the SDK is read-onlyException while marshalling C:\Program Files\Unity\Hub\Editor\2019.3.2f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools\package.xml. Probably the SDK is read-onlyException while marshalling C:\Program Files\Unity\Hub\Editor\2019.3.2f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-28\package.xml. Probably the SDK is read-onlyException while marshalling C:\Program Files\Unity\Hub\Editor\2019.3.2f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\tools\package.xml. Probably the SDK is read-onlyException while marshalling C:\Program Files\Unity\Hub\Editor\2019.3.2f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\build-tools\28.0.3\package.xml. Probably the SDK is read-onlyException while marshalling C:\Program Files\Unity\Hub\Editor\2019.3.2f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools\package.xml. Probably the SDK is read-onlyException while marshalling C:\Program Files\Unity\Hub\Editor\2019.3.2f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-28\package.xml. Probably the SDK is read-onlyException while marshalling C:\Program Files\Unity\Hub\Editor\2019.3.2f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\tools\package.xml. Probably the SDK is read-only


    Task :preBuild UP-TO-DATETask :GoogleMobileAdsPlugin.androidlib:preBuild UP-TO-DATETask :GoogleMobileAdsPlugin.androidlib:preReleaseBuild UP-TO-DATETask :GoogleMobileAdsPlugin.androidlib:checkReleaseManifestTask :GoogleMobileAdsPlugin.androidlib:processReleaseManifestTask :preReleaseBuild UP-TO-DATETask :GoogleMobileAdsPlugin.androidlib:compileReleaseAidl NO-SOURCETask :compileReleaseAidl NO-SOURCETask :GoogleMobileAdsPlugin.androidlib:packageReleaseRenderscript NO-SOURCETask :compileReleaseRenderscript NO-SOURCETask :checkReleaseManifest UP-TO-DATETask :generateReleaseBuildConfig UP-TO-DATETask :prepareLintJar UP-TO-DATETask :generateReleaseSources UP-TO-DATETask :GoogleMobileAdsPlugin.androidlib:compileReleaseRenderscript NO-SOURCETask :GoogleMobileAdsPlugin.androidlib:generateReleaseBuildConfigTask :GoogleMobileAdsPlugin.androidlib:generateReleaseResValuesTask :GoogleMobileAdsPlugin.androidlib:generateReleaseResourcesTask :GoogleMobileAdsPlugin.androidlib:packageReleaseResourcesTask :GoogleMobileAdsPlugin.androidlib:generateReleaseRFileTask :GoogleMobileAdsPlugin.androidlib:prepareLintJar UP-TO-DATETask :GoogleMobileAdsPlugin.androidlib:generateReleaseSourcesTask :GoogleMobileAdsPlugin.androidlib:javaPreCompileReleaseTask :GoogleMobileAdsPlugin.androidlib:compileReleaseJavaWithJavacTask :GoogleMobileAdsPlugin.androidlib:bundleLibCompileReleaseTask :javaPreCompileRelease UP-TO-DATETask :mainApkListPersistenceRelease UP-TO-DATETask :generateReleaseResValues UP-TO-DATETask :generateReleaseResources UP-TO-DATETask :mergeReleaseResources UP-TO-DATETask :createReleaseCompatibleScreenManifests UP-TO-DATE


    Task :processReleaseManifest FAILED


    有关 list 合并的更多信息,请参见 http://g.co/androidstudio/manifest-merger
    此版本中使用了不推荐使用的Gradle功能,使其与Gradle 6.0不兼容。
    使用“--warning-mode all”来显示各个弃用警告。
    参见 https://docs.gradle.org/5.1.1/userguide/command_line_interface.html#sec:command_line_warnings
    20个可执行任务:已执行10个,最新10个
    ]
    退出代码:1
    UnityEditor.Android.Command.WaitForProgramToRun(UnityEditor.Utils.Program p,UnityEditor.Android.Command + WaitingForProcessToExit等待ForProcessToExit,System.String errorMsg)(位于<67e4f96bbb8d486db6550813353bb5eb>:0)
    UnityEditor.Android.Command.Run(System.Diagnostics.ProcessStartInfo psi,UnityEditor.Android.Command + WaitingForProcessToExitwaitingForProcessToExit,System.String errorMsg)(位于<67e4f96bbb8d486db6550813353bb5eb>:0)
    UnityEditor.Android.Command.Run(System.String命令,System.String args,System.String工作目录,UnityEditor.Android.Command + WaitingForProcessToExit等待ForProcessToExit,System.String errorMsg)(位于<67e4f96bbb8d486db6550813353bb5eb>:0)
    UnityEditor.Android.AndroidJavaTools.RunJava(System.String args,System.String workingdir,System.Action 1[T] progress, System.String error) (at <67e4f96bbb8d486db6550813353bb5eb>:0) UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action 1 [T]进度)(位于<67e4f96bbb8d486db6550813353bb5eb>:0)
    重新作为GradleInvokationException:Gradle构建失败
    UnityEditor.Android.GradleWrapper.Run(UnityEditor.Android.AndroidJavaTools javaTools,System.String workingdir,System.String任务,System.Action`1 [T]进度)(位于<67e4f96bbb8d486db6550813353bb5eb>:0)
    UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute(UnityEditor.Android.PostProcessor.PostProcessorContext上下文)(位于<67e4f96bbb8d486db6550813353bb5eb>:0)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTask​​s(UnityEditor.Android.PostProcessor.PostProcessorContext上下文)(位于<67e4f96bbb8d486db6550813353bb5eb>:0)

    最佳答案

    更改您的build.gradle:
    defaultConfig {
    minSdkVersion 19
    }

    关于java - CommandInvokationFailure:Gradle构建失败。打开JDK错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64621096/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com