13강 예제파일 실행 시 오류
962
작성한 질문수 2
13강 예제파일로 실행 시 아래 오류가 발생하는데 문제가 뭘까요? (사람이 문제겠죠?)
소스코드 :
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: const MyHomePage(),
);
}
}
class MyHomePage extends StatefulWidget {
const MyHomePage({Key? key}) : super(key: key);
@override
State<MyHomePage> createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
@override
Widget build(BuildContext context) {
return Container();
}
}
에러
Launching lib\main.dart on sdk gphone64 x86 64 in debug mode...
Running Gradle task 'assembleDebug'...
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all files for configuration ':classpath'.
> Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10.
Required by:
project :
> Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10.
> Could not get resource 'https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.7.10/kotlin-gradle-plugin-1.7.10.pom'.
> Could not GET 'https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.7.10/kotlin-gradle-plugin-1.7.10.pom'.
> The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/7.5/userguide/build_environment.html#gradle_system_properties
(중략)
* 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 4s
[!] Gradle threw an error while downloading artifacts from the network.
Exception: Gradle task assembleDebug failed with exit code 1
답변 1
0
코드와는 별개로 Android 빌드를 위한 kotlin 플러그인 다운로드가 안 되는 문제 같습니다.
혹시 회사 내에서 하시는 것이라면 핸드폰 테더링 등으로 인터넷 연결된 상태에서 잘 되는지 해 보시고 그렇다면 회사 내부망에서의 문제 같습니다.
흡사한 내용으로 참고할 만한 링크를 드립니다.
실로폰 음원 재생 오류 해결 (do.1.wav)
1
72
2
Emulate Device Frame 관련 질문입니다.
0
89
2
124강 DB에 Todo 등록
0
78
1
webview import가 원활하지 않습니다 도와주세요
0
117
3
webview 버전
0
105
2
섹션3. 비만도계산기 문자열 입력가능 오류 관련
0
92
2
appbar 오류
0
62
2
mac 사용자만 들으면 되는 강의인가요?
0
64
2
Error: Unable to find git in your PATH.
0
186
2
60. 053. 결과화면 작성
0
58
1
구글지도 사용에서
0
50
2
todo리스트 강의중에서..
0
66
2
강의가 오래 된거 같은데
1
78
2
const 적용
0
49
1
soundpool 라이브러리가 없습니다
0
103
2
비만계산기 강의에 대해서 질문
0
126
2
webview 영상처럼 3.0.4 버전으로 할경우 AGP 문제
0
205
3
dispose 오버라이드 메소드 자동완성이 안 됩니다.
0
159
2
에뮬레이터 실행 안됨 오류
0
602
1
안드로이드 앱 핑테스트
0
509
1
현업에서 로컬 DB 활용시 Hive 사용했을때 구현 패턴 문의
0
319
1
지도위에 이동 경로 스리기
0
624
1
구글 맵 플랫폼
0
392
1
floatingActionButton 미출력 문의
0
257
1





