VS 2017 , «установить инструменты для Android», устанавливает версию Android Android SDK 23.
Только для версии 23 визуальная студия, показывающая опцию «Устройство» для построения и развертывания в противном случае, не показывает этого.
Я установил последний Gradle с сайта Gradle.
Затем я установил Android Studio с сайта Android, на котором были установлены версии 27 и 26.
Я зашел в Android SDK manager и установил версию 25.x Platform.
Я несколько раз пробовал, но платформа 25 не устанавливается, и соответствующая лицензия не создается для Android.
*
Я ищу какое-то направление, чтобы решить следующее, что я строю простое приложение для Кордовы
*,
Subproject Path: CordovaLib
[VSTAC_VERBOSE]Running command: cmd "/s /c ""C:UsersEkambarraoDocumentsVisual Studio 2017ProjectsDropDownListDropDownListplatformsandroidgradlew.bat" cdvBuildDebug -b "C:UsersEkambarraoDocumentsVisual Studio 2017ProjectsDropDownListDropDownListplatformsandroiduild.gradle" -Dorg.gradle.daemon=true -Dorg.gradle.jvmargs=-Xmx2048m -Pandroid.useDeprecatedNdk=true""
Starting a Gradle Daemon, 3 incompatible and 1 stopped Daemons could not be reused, use --status for details
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
at build_7oawe4cfv2g20421045wxibet.run(C:UsersEkambarraoDocumentsVisual Studio 2017ProjectsDropDownListDropDownListplatformsandroiduild.gradle:137)
Observed package id 'add-ons;addon-unknown-unknown-23' in inconsistent location 'C:Program Files (x86)Androidandroid-sdkadd-onsaddon-google_apis-google-23' (Expected 'C:Program Files (x86)Androidandroid-sdkadd-onsaddon-unknown-unknown-23')
Observed package id 'add-ons;addon-unknown-unknown-23' in inconsistent location 'C:Program Files (x86)Androidandroid-sdkadd-onsaddon-google_apis-google-23' (Expected 'C:Program Files (x86)Androidandroid-sdkadd-onsaddon-unknown-unknown-23')
Observed package id 'add-ons;addon-unknown-unknown-23' in inconsistent location 'C:Program Files (x86)Androidandroid-sdkadd-onsaddon-google_apis-google-23' (Expected 'C:Program Files (x86)Androidandroid-sdkadd-onsaddon-unknown-unknown-23')
Checking the license for package Android SDK Platform 25 in C:Program Files (x86)Androidandroid-sdklicenses
Warning: License for package Android SDK Platform 25 not accepted.
BUILD FAILED
Total time: 47.971 secs
1> MSBUILD : cordova-build error : FAILURE: Build failed with an exception.
1> MSBUILD : cordova-build error : * What went wrong:
1> MSBUILD : cordova-build error : A problem occurred configuring root project 'android'.
1> MSBUILD : cordova-build error : > You have not accepted the license agreements of the following SDK components:
1> MSBUILD : cordova-build error : [Android SDK Platform 25].
1> MSBUILD : cordova-build error : Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.
1> MSBUILD : cordova-build error : Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html
1> MSBUILD : cordova-build error : * Try:
1> MSBUILD : cordova-build error : Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
[VSTAC_VERBOSE]Command finished with error code 1: cmd /s /c ""C:UsersEkambarraoDocumentsVisual Studio 2017ProjectsDropDownListDropDownListplatformsandroidgradlew.bat" cdvBuildDebug -b "C:UsersEkambarraoDocumentsVisual Studio 2017ProjectsDropDownListDropDownListplatformsandroiduild.gradle" -Dorg.gradle.daemon=true -Dorg.gradle.jvmargs=-Xmx2048m -Pandroid.useDeprecatedNdk=true"
1> MSBUILD : cordova-build error : Error: cmd: Command failed with exit code 1 Error output:
1> MSBUILD : cordova-build error : FAILURE: Build failed with an exception.
1> MSBUILD : cordova-build error : * What went wrong:
1> MSBUILD : cordova-build error : A problem occurred configuring root project 'android'.
1> MSBUILD : cordova-build error : > You have not accepted the license agreements of the following SDK components:
1> MSBUILD : cordova-build error : [Android SDK Platform 25].
1> MSBUILD : cordova-build error : Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.
1> MSBUILD : cordova-build error : Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html
1> MSBUILD : cordova-build error : * Try:
1> MSBUILD : cordova-build error : Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
1> MSBUILD : cordova-build error : Picked up _JAVA_OPTIONS: -Xmx512M
1> Done executing task "VsTac" -- FAILED.
1>Done building target "BuildMDA" in project "DropDownList.jsproj" -- FAILED.
1>
1>Done building project "DropDownList.jsproj" -- FAILED.
1>
1>Project Performance Summary:
1> 73703 ms C:UsersEkambarraoDocumentsVisual Studio 2017ProjectsDropDownListDropDownListDropDownList.jsproj 1 calls
1>
1>Target Performance Summary:
1> 0 ms BuildOnlySettings 1 calls
1> 0 ms AfterBuild 1 calls
1> 0 ms BeforeBuild 1 calls
1> 0 ms CheckForIPACancel 1 calls
1> 0 ms PreComputeCompileTypeScript 1 calls
1> 0 ms CoreBuild 1 calls
1> 0 ms _CheckForInvalidConfigurationAndPlatform 1 calls
1> 16 ms CompileTypeScript 1 calls
1> 14030 ms EnsureNodeJsRequirementsAreAtCorrectVersion 1 calls
1> 59657 ms BuildMDA 1 calls
1>
1>Task Performance Summary:
1> 0 ms Message 2 calls
1> 16 ms VsTsc 2 calls
1> 16 ms CreateBuildInfoMetadata 1 calls
1> 14030 ms MdaVerifySetup 1 calls
1> 59642 ms VsTac 1 calls
1>
1>Build FAILED.
1>
1>Time Elapsed 00:01:13.71
android,cordova,visual-studio-2017,
VS 2017 , «установить инструменты для Android», устанавливает версию Android Android SDK 23.
Только для версии 23 визуальная студия, показывающая опцию «Устройство» для построения и развертывания в противном случае, не показывает этого.
Я установил последний Gradle с сайта Gradle.
Затем я установил Android Studio с сайта Android, на котором были установлены версии 27 и 26.
Я зашел в Android SDK manager и установил версию 25.x Platform.
Я несколько раз пробовал, но платформа 25 не устанавливается, и соответствующая лицензия не создается для Android.
*
Я ищу какое-то направление, чтобы решить следующее, что я строю простое приложение для Кордовы
*,
Subproject Path: CordovaLib
[VSTAC_VERBOSE]Running command: cmd "/s /c ""C:UsersEkambarraoDocumentsVisual Studio 2017ProjectsDropDownListDropDownListplatformsandroidgradlew.bat" cdvBuildDebug -b "C:UsersEkambarraoDocumentsVisual Studio 2017ProjectsDropDownListDropDownListplatformsandroiduild.gradle" -Dorg.gradle.daemon=true -Dorg.gradle.jvmargs=-Xmx2048m -Pandroid.useDeprecatedNdk=true""
Starting a Gradle Daemon, 3 incompatible and 1 stopped Daemons could not be reused, use --status for details
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
at build_7oawe4cfv2g20421045wxibet.run(C:UsersEkambarraoDocumentsVisual Studio 2017ProjectsDropDownListDropDownListplatformsandroiduild.gradle:137)
Observed package id 'add-ons;addon-unknown-unknown-23' in inconsistent location 'C:Program Files (x86)Androidandroid-sdkadd-onsaddon-google_apis-google-23' (Expected 'C:Program Files (x86)Androidandroid-sdkadd-onsaddon-unknown-unknown-23')
Observed package id 'add-ons;addon-unknown-unknown-23' in inconsistent location 'C:Program Files (x86)Androidandroid-sdkadd-onsaddon-google_apis-google-23' (Expected 'C:Program Files (x86)Androidandroid-sdkadd-onsaddon-unknown-unknown-23')
Observed package id 'add-ons;addon-unknown-unknown-23' in inconsistent location 'C:Program Files (x86)Androidandroid-sdkadd-onsaddon-google_apis-google-23' (Expected 'C:Program Files (x86)Androidandroid-sdkadd-onsaddon-unknown-unknown-23')
Checking the license for package Android SDK Platform 25 in C:Program Files (x86)Androidandroid-sdklicenses
Warning: License for package Android SDK Platform 25 not accepted.
BUILD FAILED
Total time: 47.971 secs
1> MSBUILD : cordova-build error : FAILURE: Build failed with an exception.
1> MSBUILD : cordova-build error : * What went wrong:
1> MSBUILD : cordova-build error : A problem occurred configuring root project 'android'.
1> MSBUILD : cordova-build error : > You have not accepted the license agreements of the following SDK components:
1> MSBUILD : cordova-build error : [Android SDK Platform 25].
1> MSBUILD : cordova-build error : Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.
1> MSBUILD : cordova-build error : Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html
1> MSBUILD : cordova-build error : * Try:
1> MSBUILD : cordova-build error : Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
[VSTAC_VERBOSE]Command finished with error code 1: cmd /s /c ""C:UsersEkambarraoDocumentsVisual Studio 2017ProjectsDropDownListDropDownListplatformsandroidgradlew.bat" cdvBuildDebug -b "C:UsersEkambarraoDocumentsVisual Studio 2017ProjectsDropDownListDropDownListplatformsandroiduild.gradle" -Dorg.gradle.daemon=true -Dorg.gradle.jvmargs=-Xmx2048m -Pandroid.useDeprecatedNdk=true"
1> MSBUILD : cordova-build error : Error: cmd: Command failed with exit code 1 Error output:
1> MSBUILD : cordova-build error : FAILURE: Build failed with an exception.
1> MSBUILD : cordova-build error : * What went wrong:
1> MSBUILD : cordova-build error : A problem occurred configuring root project 'android'.
1> MSBUILD : cordova-build error : > You have not accepted the license agreements of the following SDK components:
1> MSBUILD : cordova-build error : [Android SDK Platform 25].
1> MSBUILD : cordova-build error : Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.
1> MSBUILD : cordova-build error : Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html
1> MSBUILD : cordova-build error : * Try:
1> MSBUILD : cordova-build error : Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
1> MSBUILD : cordova-build error : Picked up _JAVA_OPTIONS: -Xmx512M
1> Done executing task "VsTac" -- FAILED.
1>Done building target "BuildMDA" in project "DropDownList.jsproj" -- FAILED.
1>
1>Done building project "DropDownList.jsproj" -- FAILED.
1>
1>Project Performance Summary:
1> 73703 ms C:UsersEkambarraoDocumentsVisual Studio 2017ProjectsDropDownListDropDownListDropDownList.jsproj 1 calls
1>
1>Target Performance Summary:
1> 0 ms BuildOnlySettings 1 calls
1> 0 ms AfterBuild 1 calls
1> 0 ms BeforeBuild 1 calls
1> 0 ms CheckForIPACancel 1 calls
1> 0 ms PreComputeCompileTypeScript 1 calls
1> 0 ms CoreBuild 1 calls
1> 0 ms _CheckForInvalidConfigurationAndPlatform 1 calls
1> 16 ms CompileTypeScript 1 calls
1> 14030 ms EnsureNodeJsRequirementsAreAtCorrectVersion 1 calls
1> 59657 ms BuildMDA 1 calls
1>
1>Task Performance Summary:
1> 0 ms Message 2 calls
1> 16 ms VsTsc 2 calls
1> 16 ms CreateBuildInfoMetadata 1 calls
1> 14030 ms MdaVerifySetup 1 calls
1> 59642 ms VsTac 1 calls
1>
1>Build FAILED.
1>
1>Time Elapsed 00:01:13.71
00андроид, Cordova, зрительно-студия-2017,