我正在开发android项目并且每件事都运行正常,但是当我开始一个新的cordova项目时,它会抛出错误Error:No installed build tools found. Install the Android build tools version 19.1.0 or higher.
我在Google上搜索,大多数答案都是change in ANDROID_PATH
。
我当前的ANDROID_HOME
路径为C:\Users\Aditya\AppData\Local\Android\Sdk;
但我仍然无法弄清楚问题。
我发现完全相似的问题"Gradle sync failed: No installed build tools found. Install the Android build tools version 19.1.0 or higher",但我仍然无法解决问题。
这里有一些我的cordova.gradle代码
ext {
// These helpers are shared, but are not guaranteed to be stable / unchanged.
privateHelpers = {}
privateHelpers.getProjectTarget = { doGetProjectTarget() }
privateHelpers.findLatestInstalledBuildTools = { doFindLatestInstalledBuildTools('19.1.0') }
privateHelpers.extractIntFromManifest = { name -> doExtractIntFromManifest(name) }
privateHelpers.extractStringFromManifest = { name -> doExtractStringFromManifest(name) }
privateHelpers.promptForPassword = { msg -> doPromptForPassword(msg) }
privateHelpers.ensureValueExists = { filePath, props, key -> doEnsureValueExists(filePath, props, key) }
// These helpers can be used by plugins / projects and will not change.
cdvHelpers = {}
// Returns a XmlParser for the config.xml. Added in 4.1.0.
cdvHelpers.getConfigXml = { doGetConfigXml() }
// Returns the value for the desired <preference>. Added in 4.1.0.
cdvHelpers.getConfigPreference = { name, defaultValue -> doGetConfigPreference(name, defaultValue) }
}
如果有人需要有关env_valiable的更多信息,请告诉我,我会更新。
修改:当我android update sdk -u -a -t <package no.>
时,它会显示Filter <package no> is not supported