gpt4 book ai didi

android - 在 IONIC 项目中更改 buildToolsVersion 的位置

转载 作者:行者123 更新时间:2023-11-29 15:00:02 26 4
gpt4 key购买 nike

嘿, friend 们,我在我的 IONIC 项目中遇到了一个问题

找到解决方案是升级 build.gradle 文件中的 buildToolsVersion,但任何人都可以帮助我确切需要更改值的地方

出了什么问题:
任务“:processDebugResources”的执行失败。

com.android.ide.common.process.ProcessException: Failed to execute aapt * Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. (node:7332) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: cmd: Command failed with exit code 1 Error output:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details. Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details. values-v26\values-v26.xml:15:21-54: AAPT: No resource found that matches the given name: attr 'android:keyboardNavigationCluster'. values-v26\values-v26.xml:15: error: Error: No resource found that matches the given name: attr 'android:keyboardNavigationCluster'. FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':processDebugResources'. > com.android.ide.common.process.ProcessException: Failed to execute aapt * Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

最佳答案

更新您的 Android SDK,并接受许可。

并在构建应用程序之前运行这些命令:

UNIX

  export ORG_GRADLE_PROJECT_cdvCompileSdkVersion=android-26
export ORG_GRADLE_PROJECT_cdvBuildToolsVersion=26.0.1

Windows

  set ORG_GRADLE_PROJECT_cdvCompileSdkVersion=android-26
set ORG_GRADLE_PROJECT_cdvBuildToolsVersion=26.0.1

关于android - 在 IONIC 项目中更改 buildToolsVersion 的位置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48622364/

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