You are getting the below issue, which is build error from android
cordova application
* What went wrong:
> failed to find target with hash string 'android-26'
in: C:\ProgramData\Microsoft\AndroidSDK\25
It is happening as you have not installed the particular
image which your application is pointing to. You are missing the image where
your android SDK is present as
C:\ProgramData\Microsoft\AndroidSDK\25
You are having the android SDK version mentioned in
Build.Gradle as like below.
ext {
apply from:
'cordova.gradle'
cdvCompileSdkVersion = 26
//privateHelpers.getProjectTarget()
cdvBuildToolsVersion =
privateHelpers.findLatestInstalledBuildTools()
}
|
You need to install Image from android SDK manager. You will get it from
below path.
C:\ProgramData\Microsoft\AndroidSDK\25\tools clink on android.bat file then it will open
and install the below content for image 26.
For me it is installed that’s why it is looking as
installed. Based on requirement install the image.
No comments:
Post a Comment