Tolegen Akilbekov
Tolegen Akilbekov

Reputation: 49

Can not build release apk after switchinf flutter from master to stable

I can not build release apk, however i can build apk in debug mode. When i was in flutter channel master it was ok, but then, i switched to master and get this logs. Actually if i will switch back it will work fine, however some of my packages do not support features of master channel, so i must be on stable.

Error log presented under:

FAILURE: Build failed with an exception.

Could not resolve all artifacts for configuration ':app:debugRuntimeClasspath'. Failed to transform libs.jar to match attributes {artifactType=processed-jar, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}. > Execution failed for JetifyTransform: C:\educ-team\Educ-crossplatform\build\app\intermediates\flutter\debug\libs.jar. > Transform's input file does not exist: C:\educ-team\Educ-crossplatform\build\app\intermediates\flutter\debug\libs.jar. (See https://issuetracker.google.com/issues/158753935)

BUILD FAILED in 1m 54s Running Gradle task 'assembleRelease'...
Running Gradle task 'assembleRelease'... Done 115,3s Gradle task assembleRelease failed with exit code 1

Upvotes: 1

Views: 110

Answers (1)

Hamza Siddiqui
Hamza Siddiqui

Reputation: 716

try --dubug then --release and if this doesn't work try -- debug then --profile then --release

Upvotes: 1

Related Questions