인프런 커뮤니티 질문&답변

김형진님의 프로필 이미지
김형진

작성한 질문수

Flutter 초입문 왕초보편

013. StatefulWidget 을 사용하여 화면의 뼈대 만들기

13강 예제파일 실행 시 오류

작성

·

577

0

 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

 

답변

답변을 기다리고 있는 질문이에요
첫번째 답변을 남겨보세요!
김형진님의 프로필 이미지
김형진

작성한 질문수

질문하기