Failed to create flutter app after follow the tutorial












1















I am follow the flutter tutorial to create flutter app. first, use flutter command flutter create myflutter to initialize. then I execute flutter run got some gradle resolve dependencies error, it show a 405 network eror when i visit dl.google.com,then I change the bulid.gradle file to visit an normal websit,I still failed.the follow code is my config:
androidbuild.gradle:



buildscript {
ext.kotlin_version = '1.2.71'
repositories {
mavenCentral()
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
}

dependencies {
classpath 'com.android.tools.build:gradle:3.1.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}

allprojects {
repositories {
mavenCentral()
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
}
}

rootProject.buildDir = '../build'
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
project.evaluationDependsOn(':app')
}

task clean(type: Delete) {
delete rootProject.buildDir
}


the error message:



Launching libmain.dart on Android SDK built for x86 in debug mode...
Initializing gradle...
Resolving dependencies...
* Error running Gradle:
ProcessException: Process "C:UserslinlaAndroidStudioProjectsflutter_app2androidgradlew.bat" exited abnormally:

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all artifacts for configuration ':classpath'.
> Could not resolve com.android.tools.build:gradle:3.1.0.
Required by:
project :
> Could not resolve com.android.tools.build:gradle:3.1.0.
> Could not get resource 'https://repo.maven.apache.org/maven2/com/android/tools/build/gradle/3.1.0/gradle-3.1.0.pom'.
> Could not GET 'https://repo.maven.apache.org/maven2/com/android/tools/build/gradle/3.1.0/gradle-3.1.0.pom'. Received status code 405 from server: Method Not Allowed
> Could not resolve com.android.tools.build:gradle:3.1.0.
> Could not get resource 'http://maven.aliyun.com/nexus/content/groups/public/com/android/tools/build/gradle/3.1.0/gradle-3.1.0.pom'.
> Could not GET 'http://maven.aliyun.com/nexus/content/groups/public/com/android/tools/build/gradle/3.1.0/gradle-3.1.0.pom'.
> maven.aliyun.com:80 failed to respond
> Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.71.
Required by:
project :
> Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.71.
> Could not get resource 'https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.2.71/kotlin-gradle-plugin-1.2.71.pom'.
> Could not GET 'https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.2.71/kotlin-gradle-plugin-1.2.71.pom'. Received status code 405 from server: Method Not Allowed
> Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.71.
> Could not get resource 'http://maven.aliyun.com/nexus/content/groups/public/org/jetbrains/kotlin/kotlin-gradle-plugin/1.2.71/kotlin-gradle-plugin-1.2.71.pom'.
> Could not GET 'http://maven.aliyun.com/nexus/content/groups/public/org/jetbrains/kotlin/kotlin-gradle-plugin/1.2.71/kotlin-gradle-plugin-1.2.71.pom'.
> maven.aliyun.com:80 failed to respond

* 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 2s
Command: C:UserslinlaAndroidStudioProjectsflutter_app2androidgradlew.bat app:properties

Finished with error: Please review your Gradle project setup in the android/ folder.


flutter doctor -v log message



G:appmyflutter>flutter doctor -v
[√] Flutter (Channel beta, v0.11.3, on Microsoft Windows [Version 10.0.16299.547], locale zh-CN)
• Flutter version 0.11.3 at C:depflutter
• Framework revision 72bf075e8d (11 days ago), 2018-11-09 20:36:17 -0800
• Engine revision 5646e86a6f
• Dart version 2.1.0 (build 2.1.0-dev.9.3 9c07fb64c4)

[√] Android toolchain - develop for Android devices (Android SDK 28.0.3)
• Android SDK at C:UserslinlaAppDataLocalAndroidsdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• Java binary at: E:developeSoftwareASjrebinjava
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
• All Android licenses accepted.

[√] Android Studio (version 3.2)
• Android Studio at E:developeSoftwareAS
• Flutter plugin version 29.1.1
• Dart plugin version 181.5540.11
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

[√] Connected device (1 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 9 (API 28) (emulator)

• No issues found!


it may be my version error? or other config error?










share|improve this question

























  • Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.1.0/gradle-3.1.0.pom'. Received status code 405 from server: Method Not Allowed

    – L.Ann
    Nov 21 '18 at 9:04











  • I am in CN,it has GFW,I can't visit GOOGLE resource,So I change to other mirror ,but still no work

    – L.Ann
    Nov 21 '18 at 9:09











  • when I visit this url in my browser http://maven.aliyun.com/nexus/content/groups/public/org/jetbrains/kotlin/kotlin-gradle-plugin/1.2.71/kotlin-gradle-plugin-1.2.71.pom , I can dowload the file,so I am confuse now

    – L.Ann
    Nov 21 '18 at 9:11
















1















I am follow the flutter tutorial to create flutter app. first, use flutter command flutter create myflutter to initialize. then I execute flutter run got some gradle resolve dependencies error, it show a 405 network eror when i visit dl.google.com,then I change the bulid.gradle file to visit an normal websit,I still failed.the follow code is my config:
androidbuild.gradle:



buildscript {
ext.kotlin_version = '1.2.71'
repositories {
mavenCentral()
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
}

dependencies {
classpath 'com.android.tools.build:gradle:3.1.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}

allprojects {
repositories {
mavenCentral()
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
}
}

rootProject.buildDir = '../build'
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
project.evaluationDependsOn(':app')
}

task clean(type: Delete) {
delete rootProject.buildDir
}


the error message:



Launching libmain.dart on Android SDK built for x86 in debug mode...
Initializing gradle...
Resolving dependencies...
* Error running Gradle:
ProcessException: Process "C:UserslinlaAndroidStudioProjectsflutter_app2androidgradlew.bat" exited abnormally:

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all artifacts for configuration ':classpath'.
> Could not resolve com.android.tools.build:gradle:3.1.0.
Required by:
project :
> Could not resolve com.android.tools.build:gradle:3.1.0.
> Could not get resource 'https://repo.maven.apache.org/maven2/com/android/tools/build/gradle/3.1.0/gradle-3.1.0.pom'.
> Could not GET 'https://repo.maven.apache.org/maven2/com/android/tools/build/gradle/3.1.0/gradle-3.1.0.pom'. Received status code 405 from server: Method Not Allowed
> Could not resolve com.android.tools.build:gradle:3.1.0.
> Could not get resource 'http://maven.aliyun.com/nexus/content/groups/public/com/android/tools/build/gradle/3.1.0/gradle-3.1.0.pom'.
> Could not GET 'http://maven.aliyun.com/nexus/content/groups/public/com/android/tools/build/gradle/3.1.0/gradle-3.1.0.pom'.
> maven.aliyun.com:80 failed to respond
> Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.71.
Required by:
project :
> Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.71.
> Could not get resource 'https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.2.71/kotlin-gradle-plugin-1.2.71.pom'.
> Could not GET 'https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.2.71/kotlin-gradle-plugin-1.2.71.pom'. Received status code 405 from server: Method Not Allowed
> Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.71.
> Could not get resource 'http://maven.aliyun.com/nexus/content/groups/public/org/jetbrains/kotlin/kotlin-gradle-plugin/1.2.71/kotlin-gradle-plugin-1.2.71.pom'.
> Could not GET 'http://maven.aliyun.com/nexus/content/groups/public/org/jetbrains/kotlin/kotlin-gradle-plugin/1.2.71/kotlin-gradle-plugin-1.2.71.pom'.
> maven.aliyun.com:80 failed to respond

* 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 2s
Command: C:UserslinlaAndroidStudioProjectsflutter_app2androidgradlew.bat app:properties

Finished with error: Please review your Gradle project setup in the android/ folder.


flutter doctor -v log message



G:appmyflutter>flutter doctor -v
[√] Flutter (Channel beta, v0.11.3, on Microsoft Windows [Version 10.0.16299.547], locale zh-CN)
• Flutter version 0.11.3 at C:depflutter
• Framework revision 72bf075e8d (11 days ago), 2018-11-09 20:36:17 -0800
• Engine revision 5646e86a6f
• Dart version 2.1.0 (build 2.1.0-dev.9.3 9c07fb64c4)

[√] Android toolchain - develop for Android devices (Android SDK 28.0.3)
• Android SDK at C:UserslinlaAppDataLocalAndroidsdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• Java binary at: E:developeSoftwareASjrebinjava
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
• All Android licenses accepted.

[√] Android Studio (version 3.2)
• Android Studio at E:developeSoftwareAS
• Flutter plugin version 29.1.1
• Dart plugin version 181.5540.11
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

[√] Connected device (1 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 9 (API 28) (emulator)

• No issues found!


it may be my version error? or other config error?










share|improve this question

























  • Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.1.0/gradle-3.1.0.pom'. Received status code 405 from server: Method Not Allowed

    – L.Ann
    Nov 21 '18 at 9:04











  • I am in CN,it has GFW,I can't visit GOOGLE resource,So I change to other mirror ,but still no work

    – L.Ann
    Nov 21 '18 at 9:09











  • when I visit this url in my browser http://maven.aliyun.com/nexus/content/groups/public/org/jetbrains/kotlin/kotlin-gradle-plugin/1.2.71/kotlin-gradle-plugin-1.2.71.pom , I can dowload the file,so I am confuse now

    – L.Ann
    Nov 21 '18 at 9:11














1












1








1








I am follow the flutter tutorial to create flutter app. first, use flutter command flutter create myflutter to initialize. then I execute flutter run got some gradle resolve dependencies error, it show a 405 network eror when i visit dl.google.com,then I change the bulid.gradle file to visit an normal websit,I still failed.the follow code is my config:
androidbuild.gradle:



buildscript {
ext.kotlin_version = '1.2.71'
repositories {
mavenCentral()
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
}

dependencies {
classpath 'com.android.tools.build:gradle:3.1.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}

allprojects {
repositories {
mavenCentral()
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
}
}

rootProject.buildDir = '../build'
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
project.evaluationDependsOn(':app')
}

task clean(type: Delete) {
delete rootProject.buildDir
}


the error message:



Launching libmain.dart on Android SDK built for x86 in debug mode...
Initializing gradle...
Resolving dependencies...
* Error running Gradle:
ProcessException: Process "C:UserslinlaAndroidStudioProjectsflutter_app2androidgradlew.bat" exited abnormally:

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all artifacts for configuration ':classpath'.
> Could not resolve com.android.tools.build:gradle:3.1.0.
Required by:
project :
> Could not resolve com.android.tools.build:gradle:3.1.0.
> Could not get resource 'https://repo.maven.apache.org/maven2/com/android/tools/build/gradle/3.1.0/gradle-3.1.0.pom'.
> Could not GET 'https://repo.maven.apache.org/maven2/com/android/tools/build/gradle/3.1.0/gradle-3.1.0.pom'. Received status code 405 from server: Method Not Allowed
> Could not resolve com.android.tools.build:gradle:3.1.0.
> Could not get resource 'http://maven.aliyun.com/nexus/content/groups/public/com/android/tools/build/gradle/3.1.0/gradle-3.1.0.pom'.
> Could not GET 'http://maven.aliyun.com/nexus/content/groups/public/com/android/tools/build/gradle/3.1.0/gradle-3.1.0.pom'.
> maven.aliyun.com:80 failed to respond
> Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.71.
Required by:
project :
> Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.71.
> Could not get resource 'https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.2.71/kotlin-gradle-plugin-1.2.71.pom'.
> Could not GET 'https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.2.71/kotlin-gradle-plugin-1.2.71.pom'. Received status code 405 from server: Method Not Allowed
> Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.71.
> Could not get resource 'http://maven.aliyun.com/nexus/content/groups/public/org/jetbrains/kotlin/kotlin-gradle-plugin/1.2.71/kotlin-gradle-plugin-1.2.71.pom'.
> Could not GET 'http://maven.aliyun.com/nexus/content/groups/public/org/jetbrains/kotlin/kotlin-gradle-plugin/1.2.71/kotlin-gradle-plugin-1.2.71.pom'.
> maven.aliyun.com:80 failed to respond

* 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 2s
Command: C:UserslinlaAndroidStudioProjectsflutter_app2androidgradlew.bat app:properties

Finished with error: Please review your Gradle project setup in the android/ folder.


flutter doctor -v log message



G:appmyflutter>flutter doctor -v
[√] Flutter (Channel beta, v0.11.3, on Microsoft Windows [Version 10.0.16299.547], locale zh-CN)
• Flutter version 0.11.3 at C:depflutter
• Framework revision 72bf075e8d (11 days ago), 2018-11-09 20:36:17 -0800
• Engine revision 5646e86a6f
• Dart version 2.1.0 (build 2.1.0-dev.9.3 9c07fb64c4)

[√] Android toolchain - develop for Android devices (Android SDK 28.0.3)
• Android SDK at C:UserslinlaAppDataLocalAndroidsdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• Java binary at: E:developeSoftwareASjrebinjava
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
• All Android licenses accepted.

[√] Android Studio (version 3.2)
• Android Studio at E:developeSoftwareAS
• Flutter plugin version 29.1.1
• Dart plugin version 181.5540.11
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

[√] Connected device (1 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 9 (API 28) (emulator)

• No issues found!


it may be my version error? or other config error?










share|improve this question
















I am follow the flutter tutorial to create flutter app. first, use flutter command flutter create myflutter to initialize. then I execute flutter run got some gradle resolve dependencies error, it show a 405 network eror when i visit dl.google.com,then I change the bulid.gradle file to visit an normal websit,I still failed.the follow code is my config:
androidbuild.gradle:



buildscript {
ext.kotlin_version = '1.2.71'
repositories {
mavenCentral()
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
}

dependencies {
classpath 'com.android.tools.build:gradle:3.1.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}

allprojects {
repositories {
mavenCentral()
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
}
}

rootProject.buildDir = '../build'
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
project.evaluationDependsOn(':app')
}

task clean(type: Delete) {
delete rootProject.buildDir
}


the error message:



Launching libmain.dart on Android SDK built for x86 in debug mode...
Initializing gradle...
Resolving dependencies...
* Error running Gradle:
ProcessException: Process "C:UserslinlaAndroidStudioProjectsflutter_app2androidgradlew.bat" exited abnormally:

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all artifacts for configuration ':classpath'.
> Could not resolve com.android.tools.build:gradle:3.1.0.
Required by:
project :
> Could not resolve com.android.tools.build:gradle:3.1.0.
> Could not get resource 'https://repo.maven.apache.org/maven2/com/android/tools/build/gradle/3.1.0/gradle-3.1.0.pom'.
> Could not GET 'https://repo.maven.apache.org/maven2/com/android/tools/build/gradle/3.1.0/gradle-3.1.0.pom'. Received status code 405 from server: Method Not Allowed
> Could not resolve com.android.tools.build:gradle:3.1.0.
> Could not get resource 'http://maven.aliyun.com/nexus/content/groups/public/com/android/tools/build/gradle/3.1.0/gradle-3.1.0.pom'.
> Could not GET 'http://maven.aliyun.com/nexus/content/groups/public/com/android/tools/build/gradle/3.1.0/gradle-3.1.0.pom'.
> maven.aliyun.com:80 failed to respond
> Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.71.
Required by:
project :
> Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.71.
> Could not get resource 'https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.2.71/kotlin-gradle-plugin-1.2.71.pom'.
> Could not GET 'https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.2.71/kotlin-gradle-plugin-1.2.71.pom'. Received status code 405 from server: Method Not Allowed
> Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.71.
> Could not get resource 'http://maven.aliyun.com/nexus/content/groups/public/org/jetbrains/kotlin/kotlin-gradle-plugin/1.2.71/kotlin-gradle-plugin-1.2.71.pom'.
> Could not GET 'http://maven.aliyun.com/nexus/content/groups/public/org/jetbrains/kotlin/kotlin-gradle-plugin/1.2.71/kotlin-gradle-plugin-1.2.71.pom'.
> maven.aliyun.com:80 failed to respond

* 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 2s
Command: C:UserslinlaAndroidStudioProjectsflutter_app2androidgradlew.bat app:properties

Finished with error: Please review your Gradle project setup in the android/ folder.


flutter doctor -v log message



G:appmyflutter>flutter doctor -v
[√] Flutter (Channel beta, v0.11.3, on Microsoft Windows [Version 10.0.16299.547], locale zh-CN)
• Flutter version 0.11.3 at C:depflutter
• Framework revision 72bf075e8d (11 days ago), 2018-11-09 20:36:17 -0800
• Engine revision 5646e86a6f
• Dart version 2.1.0 (build 2.1.0-dev.9.3 9c07fb64c4)

[√] Android toolchain - develop for Android devices (Android SDK 28.0.3)
• Android SDK at C:UserslinlaAppDataLocalAndroidsdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• Java binary at: E:developeSoftwareASjrebinjava
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
• All Android licenses accepted.

[√] Android Studio (version 3.2)
• Android Studio at E:developeSoftwareAS
• Flutter plugin version 29.1.1
• Dart plugin version 181.5540.11
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

[√] Connected device (1 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 9 (API 28) (emulator)

• No issues found!


it may be my version error? or other config error?







android gradle flutter






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 21 '18 at 8:36









Aniruddh Parihar

2,20911128




2,20911128










asked Nov 21 '18 at 8:27









L.AnnL.Ann

488




488













  • Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.1.0/gradle-3.1.0.pom'. Received status code 405 from server: Method Not Allowed

    – L.Ann
    Nov 21 '18 at 9:04











  • I am in CN,it has GFW,I can't visit GOOGLE resource,So I change to other mirror ,but still no work

    – L.Ann
    Nov 21 '18 at 9:09











  • when I visit this url in my browser http://maven.aliyun.com/nexus/content/groups/public/org/jetbrains/kotlin/kotlin-gradle-plugin/1.2.71/kotlin-gradle-plugin-1.2.71.pom , I can dowload the file,so I am confuse now

    – L.Ann
    Nov 21 '18 at 9:11



















  • Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.1.0/gradle-3.1.0.pom'. Received status code 405 from server: Method Not Allowed

    – L.Ann
    Nov 21 '18 at 9:04











  • I am in CN,it has GFW,I can't visit GOOGLE resource,So I change to other mirror ,but still no work

    – L.Ann
    Nov 21 '18 at 9:09











  • when I visit this url in my browser http://maven.aliyun.com/nexus/content/groups/public/org/jetbrains/kotlin/kotlin-gradle-plugin/1.2.71/kotlin-gradle-plugin-1.2.71.pom , I can dowload the file,so I am confuse now

    – L.Ann
    Nov 21 '18 at 9:11

















Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.1.0/gradle-3.1.0.pom'. Received status code 405 from server: Method Not Allowed

– L.Ann
Nov 21 '18 at 9:04





Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.1.0/gradle-3.1.0.pom'. Received status code 405 from server: Method Not Allowed

– L.Ann
Nov 21 '18 at 9:04













I am in CN,it has GFW,I can't visit GOOGLE resource,So I change to other mirror ,but still no work

– L.Ann
Nov 21 '18 at 9:09





I am in CN,it has GFW,I can't visit GOOGLE resource,So I change to other mirror ,but still no work

– L.Ann
Nov 21 '18 at 9:09













when I visit this url in my browser http://maven.aliyun.com/nexus/content/groups/public/org/jetbrains/kotlin/kotlin-gradle-plugin/1.2.71/kotlin-gradle-plugin-1.2.71.pom , I can dowload the file,so I am confuse now

– L.Ann
Nov 21 '18 at 9:11





when I visit this url in my browser http://maven.aliyun.com/nexus/content/groups/public/org/jetbrains/kotlin/kotlin-gradle-plugin/1.2.71/kotlin-gradle-plugin-1.2.71.pom , I can dowload the file,so I am confuse now

– L.Ann
Nov 21 '18 at 9:11












1 Answer
1






active

oldest

votes


















1














change url like this:



....
repositories {
mavenCentral()
maven { url 'https://maven.aliyun.com/repository/google/' }
}
.
.
.
allprojects {
repositories {
mavenCentral()
maven { url 'https://maven.aliyun.com/repository/google/' }
}
}


Forgive my English.I can't post answer with Chinese.






share|improve this answer


























  • still got 405 error ` > Could not GET 'maven.aliyun.com/repository/google/com/android/tools/build/…'. Received status code 405 from server: Method Not Allowed`

    – L.Ann
    Nov 21 '18 at 9:50











  • I should solve the GFW problem...

    – L.Ann
    Nov 21 '18 at 9:57











  • I solve the GFW problem,still got 405 error

    – L.Ann
    Nov 21 '18 at 15:04











  • but I tried.It working.i.stack.imgur.com/ybSrC.png

    – dujianchi
    Nov 22 '18 at 0:43











  • at last, I uninstall my Android Studio and Clean all the config. reinstall Android Studio Keep the network still is ok (vpn) .then it's ok Now. thanks!

    – L.Ann
    Nov 22 '18 at 5:42











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53407902%2ffailed-to-create-flutter-app-after-follow-the-tutorial%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














change url like this:



....
repositories {
mavenCentral()
maven { url 'https://maven.aliyun.com/repository/google/' }
}
.
.
.
allprojects {
repositories {
mavenCentral()
maven { url 'https://maven.aliyun.com/repository/google/' }
}
}


Forgive my English.I can't post answer with Chinese.






share|improve this answer


























  • still got 405 error ` > Could not GET 'maven.aliyun.com/repository/google/com/android/tools/build/…'. Received status code 405 from server: Method Not Allowed`

    – L.Ann
    Nov 21 '18 at 9:50











  • I should solve the GFW problem...

    – L.Ann
    Nov 21 '18 at 9:57











  • I solve the GFW problem,still got 405 error

    – L.Ann
    Nov 21 '18 at 15:04











  • but I tried.It working.i.stack.imgur.com/ybSrC.png

    – dujianchi
    Nov 22 '18 at 0:43











  • at last, I uninstall my Android Studio and Clean all the config. reinstall Android Studio Keep the network still is ok (vpn) .then it's ok Now. thanks!

    – L.Ann
    Nov 22 '18 at 5:42
















1














change url like this:



....
repositories {
mavenCentral()
maven { url 'https://maven.aliyun.com/repository/google/' }
}
.
.
.
allprojects {
repositories {
mavenCentral()
maven { url 'https://maven.aliyun.com/repository/google/' }
}
}


Forgive my English.I can't post answer with Chinese.






share|improve this answer


























  • still got 405 error ` > Could not GET 'maven.aliyun.com/repository/google/com/android/tools/build/…'. Received status code 405 from server: Method Not Allowed`

    – L.Ann
    Nov 21 '18 at 9:50











  • I should solve the GFW problem...

    – L.Ann
    Nov 21 '18 at 9:57











  • I solve the GFW problem,still got 405 error

    – L.Ann
    Nov 21 '18 at 15:04











  • but I tried.It working.i.stack.imgur.com/ybSrC.png

    – dujianchi
    Nov 22 '18 at 0:43











  • at last, I uninstall my Android Studio and Clean all the config. reinstall Android Studio Keep the network still is ok (vpn) .then it's ok Now. thanks!

    – L.Ann
    Nov 22 '18 at 5:42














1












1








1







change url like this:



....
repositories {
mavenCentral()
maven { url 'https://maven.aliyun.com/repository/google/' }
}
.
.
.
allprojects {
repositories {
mavenCentral()
maven { url 'https://maven.aliyun.com/repository/google/' }
}
}


Forgive my English.I can't post answer with Chinese.






share|improve this answer















change url like this:



....
repositories {
mavenCentral()
maven { url 'https://maven.aliyun.com/repository/google/' }
}
.
.
.
allprojects {
repositories {
mavenCentral()
maven { url 'https://maven.aliyun.com/repository/google/' }
}
}


Forgive my English.I can't post answer with Chinese.







share|improve this answer














share|improve this answer



share|improve this answer








edited Nov 21 '18 at 9:33

























answered Nov 21 '18 at 9:15









dujianchidujianchi

1968




1968













  • still got 405 error ` > Could not GET 'maven.aliyun.com/repository/google/com/android/tools/build/…'. Received status code 405 from server: Method Not Allowed`

    – L.Ann
    Nov 21 '18 at 9:50











  • I should solve the GFW problem...

    – L.Ann
    Nov 21 '18 at 9:57











  • I solve the GFW problem,still got 405 error

    – L.Ann
    Nov 21 '18 at 15:04











  • but I tried.It working.i.stack.imgur.com/ybSrC.png

    – dujianchi
    Nov 22 '18 at 0:43











  • at last, I uninstall my Android Studio and Clean all the config. reinstall Android Studio Keep the network still is ok (vpn) .then it's ok Now. thanks!

    – L.Ann
    Nov 22 '18 at 5:42



















  • still got 405 error ` > Could not GET 'maven.aliyun.com/repository/google/com/android/tools/build/…'. Received status code 405 from server: Method Not Allowed`

    – L.Ann
    Nov 21 '18 at 9:50











  • I should solve the GFW problem...

    – L.Ann
    Nov 21 '18 at 9:57











  • I solve the GFW problem,still got 405 error

    – L.Ann
    Nov 21 '18 at 15:04











  • but I tried.It working.i.stack.imgur.com/ybSrC.png

    – dujianchi
    Nov 22 '18 at 0:43











  • at last, I uninstall my Android Studio and Clean all the config. reinstall Android Studio Keep the network still is ok (vpn) .then it's ok Now. thanks!

    – L.Ann
    Nov 22 '18 at 5:42

















still got 405 error ` > Could not GET 'maven.aliyun.com/repository/google/com/android/tools/build/…'. Received status code 405 from server: Method Not Allowed`

– L.Ann
Nov 21 '18 at 9:50





still got 405 error ` > Could not GET 'maven.aliyun.com/repository/google/com/android/tools/build/…'. Received status code 405 from server: Method Not Allowed`

– L.Ann
Nov 21 '18 at 9:50













I should solve the GFW problem...

– L.Ann
Nov 21 '18 at 9:57





I should solve the GFW problem...

– L.Ann
Nov 21 '18 at 9:57













I solve the GFW problem,still got 405 error

– L.Ann
Nov 21 '18 at 15:04





I solve the GFW problem,still got 405 error

– L.Ann
Nov 21 '18 at 15:04













but I tried.It working.i.stack.imgur.com/ybSrC.png

– dujianchi
Nov 22 '18 at 0:43





but I tried.It working.i.stack.imgur.com/ybSrC.png

– dujianchi
Nov 22 '18 at 0:43













at last, I uninstall my Android Studio and Clean all the config. reinstall Android Studio Keep the network still is ok (vpn) .then it's ok Now. thanks!

– L.Ann
Nov 22 '18 at 5:42





at last, I uninstall my Android Studio and Clean all the config. reinstall Android Studio Keep the network still is ok (vpn) .then it's ok Now. thanks!

– L.Ann
Nov 22 '18 at 5:42




















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53407902%2ffailed-to-create-flutter-app-after-follow-the-tutorial%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Guess what letter conforming each word

Port of Spain

Run scheduled task as local user group (not BUILTIN)