반응형
A problem occurred evaluating root project 'android'.
> Failed to apply plugin [id 'com.android.application']
> Minimum supported Gradle version is 4.4. Current version is 4.1. If using the gradle wrapper, try editing the distributionUrl in D:\projectname\android\gradle\wrapper\gradle-wrapper.properties to gradle-4.4-all.zip
1 . 직접변경
1.폴더이동
D:\projectname\platforms\android\cordova\lib\builders\GradleBuilder.js
2.파일을 연후 해당부분 버전변경
GradleBuilder.prototype.prepEnv = function (opts) {
생략
var distributionUrl = process.env['CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL']
|| 'https\\://services.gradle.org/distributions/gradle-4.4-all.zip';
생략
});
};
확인
D:\projectname\platforms\android\gradle\wrapper
해당 폴이 이동후
gradle-wrapper.properties 파일 확인
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
https://services.gradle.org/distributions/
2 . https://www.npmjs.com/package/cordova-android-support-gradle-release
플러그인을 이용한 해결
반응형
'모바일 > CORDOVA' 카테고리의 다른 글
transformDexWithDexForRelease (0) | 2019.02.26 |
---|---|
cordova-plugin-appversion (0) | 2018.09.20 |
cordova-plugin-ionic-keyboard (0) | 2018.07.17 |
cordova-plugin-inappbrowser (0) | 2018.06.29 |
cordova-plugin-splashscreen (0) | 2018.04.26 |