인프런 커뮤니티 질문&답변
gradle 추가하고 아래 오류가 발행하고 있어요..
작성
·
11K
1
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\Users\mskim\AndroidStudioProjects\flutter_app\flutter_app_instargram_test\android\build.gradle' line: 36
* What went wrong:
A problem occurred evaluating root project 'android'.
> Could not find method compile() for arguments [com.android.support:support-v13:28.0.0] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
* 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 529ms
Gradle DSL method not found: 'compile()'
Possible causes:
The project 'flutter_app_instargram_test' may be using a version of the Android Gradle plug-in that does not contain the method (e.g. 'testCompile' was added in 1.1.0).
Upgrade plugin to version 3.5.3 and sync project
The project 'flutter_app_instargram_test' may be using a version of Gradle that does not contain the method.
Gradle settings
The build file may be missing a Gradle plugin.
Apply Gradle plugin
오후 1:32:27: Task execution finished.
답변 2
0
0
안드로이드에 build.gradle 파일은 2개가 있는데 혹시 com.android.support:support-v13:28.0. 이런 비슷한 코드가 android/build.gradle 파일에 적혀 있는지 확인 해 보시고요,
android/app/build.gradle 파일로 이동해 주셔야 합니다.
소스를 참고 해 보세요.
https://github.com/junsuk5/flutter_insta_clon





