안드로이드 실행하면 에러가 납니다.
816
작성한 질문수 1
사진과 같이 에러가 나고 안드로이드에서 실행이 되지 않습니다.
ios는 정상작동합니다.
에러 메세지는 아래와 같습니다.
Launching lib/main.dart on sdk gphone64 arm64 in debug mode...
Running Gradle task 'assembleDebug'...
FAILURE: Build failed with an exception.
* What went wrong:
A problem was found with the configuration of task ':app:processDebugResources' (type 'LinkApplicationAndroidResourcesTask').
- In plugin 'com.android.internal.version-check' type 'com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask' property 'androidJarInput.androidJar' specifies file '/Users/ho/Library/Android/sdk/platforms/android-31/android.jar' which doesn't exist.
Reason: An input file was expected to be present but it doesn't exist.
Possible solutions:
1. Make sure the file exists before the task is called.
2. Make sure that the task which produces the file is declared as an input.
Please refer to https://docs.gradle.org/7.4/userguide/validation_problems.html#input_file_does_not_exist for more details about this problem.
* 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
BUILD FAILED in 8s
Exception: Gradle task assembleDebug failed with exit code 1
어떻게 해결해야 할까요?
답변 3
0
저도 똑같이 막힙니다 코드 변경해도 똑같이 막히네요 ㅠㅠ
0
저도 이 부분에서 똑같이 막히는데, 어떤 방법으로 해결할 수 있을까요?
0
안녕하세요!
이분은 kotlin 버전 에러였습니다.
플러터 버전에따라 같은 에러가 날 수 있습니다.
android/build.gradle 파일에서 ext.kotlin_version을 1.6.10으로 변경해서 실행해보세요.
아래 예제를 참고하시면 됩니다.
ext.kotlin_version = '1.6.10'그래도 안되신다면 카카오 커뮤니티로 들어와서 원격 잡아주세요!
LocationPermission.denied관련 질문입니다
0
588
1
videocontrollor dispose
0
431
1
onlogotap함수의 video nullable관련질문
0
391
1
setState 사용 차이
1
441
1
블로그 웹앱 배포 방법
0
507
1
sizedbox 위젯에 primary = RED_COLOR
1
434
1
개념 강의 순서 질문
0
408
1
materialstateProperty 다른 메소드관련질문
0
414
1
내 노트 모아보기
0
502
1
SafeArea (iPhone, Android)
0
408
1
web view 실행 안됩니다.
0
408
1
랜덤 숫자 생성기 프로젝트 관련
0
536
2
안도르이드 애뮬레이터 질문
0
384
1
super를 사용하는 건, 부모와 자식 클래스의 파라미터 이름이 꼭 같아야하나요?
0
474
1
선생님 flutter device를 크롬으로 했을때 http 통신이 안됩니다..
0
782
1
no element
0
441
1
암호화
0
235
1
책과 강의
0
387
1
voidcallback함수와 클래스내에 변수선언에 관한질문
0
475
1
android studio 세팅
0
480
1
오늘도 출근 세팅하기
2
563
1
재사용 클래스 임폴트 방법
0
480
1
가상화를 못하는 CPU인건가요? 확인 부탁드립니다.
0
399
1
flutter dispose 관련
0
1389
2





