Cordova 6.4.0 Android error when building release apk

前端 未结 3 1322
隐瞒了意图╮
隐瞒了意图╮ 2021-01-12 17:46

I had a project working well on cordova 6.3.1 .

Then I updated cordova and my project to 6.4.0 . After this, first time I built, gradle got automatically updated to

3条回答
  •  别那么骄傲
    2021-01-12 18:16

    Try changing build.gradle' if (task.name == 'validateReleaseSigning') to if (task.name == 'assembleRelease').
    This is probably related to the gradle version update in recent cordova-android updates.

    Update: It seems that validateReleaseSigning task name was changed to validateSigningRelease in the newer Gradle version :\

    So, the issue should be fixed in a next platform release (current is 6.2.0-dev).

    Update #2: The PR was merged so you can use cordova platform add https://github.com/apache/cordova-android for now (beware of unreleased versions though).

提交回复
热议问题