inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

자바와 스프링 부트로 생애 최초 서버 만들기, 누구나 쉽게 개발부터 배포까지! [서버 개발 올인원 패키지]

D-Day 앱 만들기에서 에러가 나옵니다ㅠㅠ

620

작성자 없음

작성한 질문수 0

0

하나는 "NullPointerException: Cannot invoke "String.length()" because "<parameter1>" is null" 이런 에러인거 같은데....대체 어디서 잘못된걸까요. 에러가 여러개 인건가요?

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

-----------

* What went wrong:

Execution failed for task ':app:checkDebugAarMetadata'.

> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction

> 5 issues were found when checking AAR metadata:

* Try:

> Run with --info or --debug option to get more log output.

> Run with --scan to get full insights.

* Exception is:

org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:checkDebugAarMetadata'.

Caused by: org.gradle.workers.internal.DefaultWorkerExecutor$WorkExecutionException: A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction

 

Caused by: java.lang.RuntimeException: 5 issues were found when checking AAR metadata:

1. Dependency 'androidx.appcompat:appcompat-resources:1.7.0' requires libraries and applications that

depend on it to compile against version 34 or later of the

Android APIs.

:app is currently compiled against android-33.

Also, the maximum recommended compile SDK version for Android Gradle

plugin 8.0.0 is 33.

Recommended action: Update this project's version of the Android Gradle

plugin to one that supports 34, then update this project to use

compileSdk of at least 34.

Note that updating a library or application's compileSdk (which

allows newer APIs to be used) can be done separately from updating

targetSdk (which opts the app in to new runtime behavior) and

minSdk (which determines which devices the app can be installed

on).

2. Dependency 'androidx.appcompat:appcompat:1.7.0' requires libraries and applications that

depend on it to compile against version 34 or later of the

Android APIs.

:app is currently compiled against android-33.

Also, the maximum recommended compile SDK version for Android Gradle

plugin 8.0.0 is 33.

Recommended action: Update this project's version of the Android Gradle

plugin to one that supports 34, then update this project to use

compileSdk of at least 34.

Note that updating a library or application's compileSdk (which

allows newer APIs to be used) can be done separately from updating

targetSdk (which opts the app in to new runtime behavior) and

minSdk (which determines which devices the app can be installed

on).

3. Dependency 'androidx.core:core-ktx:1.13.0' requires libraries and applications that

depend on it to compile against version 34 or later of the

Android APIs.

:app is currently compiled against android-33.

Also, the maximum recommended compile SDK version for Android Gradle

plugin 8.0.0 is 33.

Recommended action: Update this project's version of the Android Gradle

plugin to one that supports 34, then update this project to use

compileSdk of at least 34.

Note that updating a library or application's compileSdk (which

allows newer APIs to be used) can be done separately from updating

targetSdk (which opts the app in to new runtime behavior) and

minSdk (which determines which devices the app can be installed

on).

4. Dependency 'androidx.core:core:1.13.0' requires libraries and applications that

depend on it to compile against version 34 or later of the

Android APIs.

:app is currently compiled against android-33.

Also, the maximum recommended compile SDK version for Android Gradle

plugin 8.0.0 is 33.

Recommended action: Update this project's version of the Android Gradle

plugin to one that supports 34, then update this project to use

compileSdk of at least 34.

Note that updating a library or application's compileSdk (which

allows newer APIs to be used) can be done separately from updating

targetSdk (which opts the app in to new runtime behavior) and

minSdk (which determines which devices the app can be installed

on).

5. Dependency 'androidx.annotation:annotation-experimental:1.4.0' requires libraries and applications that

depend on it to compile against version 34 or later of the

Android APIs.

:app is currently compiled against android-33.

Also, the maximum recommended compile SDK version for Android Gradle

plugin 8.0.0 is 33.

Recommended action: Update this project's version of the Android Gradle

plugin to one that supports 34, then update this project to use

compileSdk of at least 34.

Note that updating a library or application's compileSdk (which

allows newer APIs to be used) can be done separately from updating

targetSdk (which opts the app in to new runtime behavior) and

minSdk (which determines which devices the app can be installed

on).

 

==============================================================================

2: Task failed with an exception.

-----------

* What went wrong:

Execution failed for task ':app:mergeExtDexDebug'.

> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.

> Failed to transform appcompat-resources-1.7.0.aar (androidx.appcompat:appcompat-resources:1.7.0) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, dexing-enable-desugaring=true, dexing-enable-jacoco-instrumentation=false, dexing-is-debuggable=true, dexing-min-sdk=24, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-runtime}.

> Execution failed for DexingNoClasspathTransform: C:\Users\abc14\.gradle\caches\transforms-3\c494794d48d9429ce3837ff3d9162578\transformed\appcompat-resources-1.7.0-runtime.jar.

> Error while dexing.

> Failed to transform appcompat-1.7.0.aar (androidx.appcompat:appcompat:1.7.0) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, dexing-enable-desugaring=true, dexing-enable-jacoco-instrumentation=false, dexing-is-debuggable=true, dexing-min-sdk=24, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-runtime}.

> Execution failed for DexingNoClasspathTransform: C:\Users\abc14\.gradle\caches\transforms-3\d251d80cfc588f74172158875c7b2196\transformed\appcompat-1.7.0-runtime.jar.

> Error while dexing.

* Try:

> Run with --info or --debug option to get more log output.

> Run with --scan to get full insights.

* Exception is:

org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:mergeExtDexDebug'.

Caused by: java.lang.NullPointerException: Cannot invoke "String.length()" because "<parameter1>" is null

Caused by: java.util.concurrent.ExecutionException: com.android.tools.r8.utils.P0: java.lang.NullPointerException: Cannot invoke "String.length()" because "<parameter1>" is null

Caused by: [CIRCULAR REFERENCE: java.lang.NullPointerException: Cannot invoke "String.length()" because "<parameter1>" is null]

Cause 2: org.gradle.api.internal.artifacts.transform.TransformException: Failed to transform appcompat-1.7.0.aar (androidx.appcompat:appcompat:1.7.0) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, dexing-enable-desugaring=true, dexing-enable-jacoco-instrumentation=false, dexing-is-debuggable=true, dexing-min-sdk=24, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-runtime}.

Caused by: org.gradle.api.internal.artifacts.transform.TransformException: Execution failed for DexingNoClasspathTransform: C:\Users\abc14\.gradle\caches\transforms-3\d251d80cfc588f74172158875c7b2196\transformed\appcompat-1.7.0-runtime.jar.

 

Caused by: com.android.builder.dexing.DexArchiveBuilderException: Error while dexing.

at com.android.builder.dexing.D8DexArchiveBuilder.getExceptionToRethrow(D8DexArchiveBuilder.java:189)

 

Caused by: com.android.tools.r8.CompilationFailedException: Compilation failed to complete, origin: C:\Users\abc14\.gradle\caches\transforms-3\d251d80cfc588f74172158875c7b2196\transformed\appcompat-1.7.0-runtime.jar:androidx/appcompat/app/ActionBarDrawerToggle$1.class

Caused by: java.lang.NullPointerException: Cannot invoke "String.length()" because "<parameter1>" is null

Suppressed: java.lang.RuntimeException: java.util.concurrent.ExecutionException: com.android.tools.r8.utils.P0: java.lang.NullPointerException: Cannot invoke "String.length()" because "<parameter1>" is null

Caused by: java.util.concurrent.ExecutionException: com.android.tools.r8.utils.P0: java.lang.NullPointerException: Cannot invoke "String.length()" because "<parameter1>" is null

Caused by: com.android.tools.r8.utils.P0: java.lang.NullPointerException: Cannot invoke "String.length()" because "<parameter1>" is null

Caused by: [CIRCULAR REFERENCE: java.lang.NullPointerException: Cannot invoke "String.length()" because "<parameter1>" is null]

 

 

java spring aws mysql spring-boot jpa

답변 1

1

최태현

안녕하세요! cloverj0님! 🙂

다른 강의에 대한 질문을 올려주신 것 같아요! 🥺 android 관련 로그도 있고 그러네요!

확인 한 번 해주시면 감사드리겠습니다.

감사합니다. 🙏

패키지 구분에 대해 궁금한게 있습니다

0

36

2

리액트 관련 질문이 있습니다.

0

71

2

스프링부트 버전

0

91

2

7강 강의를 들으려고 했는데 오류가 나서 서버가 안 켜지는거 같아요.

0

68

2

33강. UserLoanHistory의 관계성에 대한 질문

1

59

2

Java JDK 버전 문의의 건

0

145

2

ec2 에서 Linux버전이 달라져서 설치가 안되는것 같은데 자료 최신화좀 해주세요.

0

97

3

h2 console 접속했을 테이블 질문

1

70

1

ec2 서버에서 스프링 실행도 되고 인바운드 설정까지 했는데 index.html 안됨

0

83

2

15강. updateUser() 질문

0

57

2

깃허브 질

0

91

2

여기까지 다 끝냈다고 하셨는데

0

83

2

왜안될까요

0

74

2

MySQL 창이안ㄴ뜹니다

0

59

2

포스트맨

0

55

1

spring 개념적인 질문

0

76

2

인텔리제이 샘플코드 실행 안됨 오류

0

150

2

aws 배포할때 .env 파일에 저장한 환경변수에 관하여 여쭤볼게 있습니다

0

90

1

마이그레이션 오류입니다.

0

179

3

Whitelabel Error Page 오류가 났습니다.

0

182

2

안녕하십니까! 오류가 났습니다.. 도와주세요 ㅜㅜ

1

101

3

궁금한게 있습니다.

0

64

2

DTO 관련

0

74

2

궁금한게 있습니다!

0

73

2