İonic Release APK Çıkarma yaparken aşağıdaki kod bloğunu çalıştırdığımızda

ionic cordova build android — prod — release

Aşağıdaki hata ile karşılaşıyorsanız.

FAILURE: Build failed with an exception.
* Where:
Build file ‘C:\ionic\TestApp\platforms\android\CordovaLib\build.gradle’ line: 48
* What went wrong:
A problem occurred evaluating project ‘:CordovaLib’.
> Failed to apply plugin [id ‘com.github.dcendents.android-maven’]
 > Configuration with name ‘testImplementation’ not found.
* Try:
Run with — stacktrace option to get the stack trace. Run with — info or — debug option to get more log output. Run with — scan to get full insights.
* Get more help at https://help.gradle.org
BU�LD FAILED in 9s
C:\ionic\TestApp\platforms\android\gradlew: Command failed with exit code 1 Error output:
Project evaluation failed including an error in afterEvaluate {}. Run with — stacktrace for details of the afterEvaluate {} error.
FAILURE: Build failed with an exception.
* Where:
Build file ‘C:\ionic\TestApp\platforms\android\CordovaLib\build.gradle’ line: 48
* What went wrong:
A problem occurred evaluating project ‘:CordovaLib’.
> Failed to apply plugin [id ‘com.github.dcendents.android-maven’]
 > Configuration with name ‘testImplementation’ not found.
* Try:
Run with — stacktrace option to get the stack trace. Run with — info or — debug option to get more log output. Run with — scan to get full insights.
* Get more help at https://help.gradle.org
BU�LD FAILED in 9s
[ERROR] An error occurred while running subprocess cordova.
cordova.cmd build android — release exited with exit code 1.
Re-running this command with the — verbose flag may provide more information.

Aşağıdaki dosya yolununda ki build.gradle dosyasını açalım.

platforms\android\build.gradle

buildscript kısmını aşağıdaki şekilde düzeltelim.

buildscript {
      repositories {
      jcenter()
    }
 
 dependencies {
    classpath ‘com.github.dcendents:android-maven-gradle-plugin:1.5’
    classpath ‘com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3’
   }
 }

Sonrasında yine build alalım sorunun düzeldiğini göreceksiniz.

CEVAP VER

Please enter your comment!
Please enter your name here