본문 바로가기

개발 관련 이야기/플러터앱 개발

플러터 / 안드로이드 - APK 빌드 에러

< 플러터 / 안드로이드 - APK 빌드 에러 >

에러 내용: => https://www.google.co.kr/search?source=hp&ei=qDXcXIC4No-xmAWWsYX4Dg&q=Failed+to+transform+libs.jar+to+match+attributes+%7BartifactType%3Dprocessed-jar%2C+org.gradle.libraryelements%3Djar%2C+org.gradle.usage%3Djava-runtime%7D.&btnK=Google+%EA%B2%80%EC%83%89&oq=%EC%B9%BC%EB%A6%AC%EB%A6%AC%EB%88%85%EC%8A%A4&gs_l=psy-ab.1.4.0l10.332828.337193..343000...9.0..3.1018.3453.0j13j2j7-1......0....1..gws-wiz.....6..35i39j0i10j0i131j0i10i42.d_OE8-hrBnQ

 

https://www.google.co.kr/search?source=hp&ei=qDXcXIC4No-xmAWWsYX4Dg&q=Failed+to+transform+libs.jar+to+match+attributes+%7BartifactType%3Dprocessed-jar%2C+org.gradle.libraryelements%3Djar%2C+org.gradle.usage%3Djava-runtime%7D.&btnK=Google+%EA%B2%80%EC%83%89&oq=%EC%B9%BC%EB%A6%AC%EB%A6%AC%EB%88%85%EC%8A%A4&gs_l=psy-ab.1.4.0l10.332828.337193..343000...9.0..3.1018.3453.0j13j2j7-1......0....1..gws-wiz.....6..35i39j0i10j0i131j0i10i42.d_OE8-hrBnQ

 

Failed to transform libs.jar to match attributes {artifactType=processed-jar, org.gradle.libraryelements=jar, org.gradle.usage=j

Failed to transform artifact aar to match attributes (artifacttype=jar). Failed to transform file 'some-lib-release.aar' to match attributes , The error seems to be caused by ... org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}. ... Through a

www.google.co.kr

 

==> 해결책 2가지

 

1. https://stackoverflow.com/questions/62394034/flutter-can-not-build-android-apk2. 

 

flutter: can not build android apk

FAILURE: Build failed with an exception. What went wrong: Execution failed for task ':app:lintVitalRelease'. Could not resolve all artifacts for configuration ':app:debugRuntimeClasspath'. Fa...

stackoverflow.com

 

2. https://github.com/flutter/flutter/issues/58247

 

flutter build apk fails on an app using Android Gradle plugin 4.0 · Issue #58247 · flutter/flutter

Canonical Issue https://issuetracker.google.com/issues/141126614 Steps to Reproduce Run flutter create counter Update the app to use Android Gradle plugin 4.0.0 Run flutter build apk Logs FAILURE: ...

github.com