AndroidNewWidgetsDemo icon indicating copy to clipboard operation
AndroidNewWidgetsDemo copied to clipboard

gradle报错

Open wuxinxinggg opened this issue 9 years ago • 2 comments

Failed to sync Gradle project 'AndroidNewWidgetsDemo' Error:No cached version of com.android.tools.build:gradle:1.2.3 available for offline mode. Disable Gradle 'offline mode' and sync project

wuxinxinggg avatar Oct 04 '15 09:10 wuxinxinggg

@wuxinxinggg please uncheck the offline work.

uncheck_the_offline_work

opengit avatar Oct 05 '15 05:10 opengit

error occurs after the setting, it seems the GFW lead to the result. 333 how can we deal with gradle of GFW. I've tried to use the source of os china as bellow,but it can't find it.

   repositories {
        maven { url 'http://maven.oschina.net/content/groups/public/'}
        //jcenter()
    }

Errors:

Error:Could not find com.android.tools.build:gradle:1.2.3.
Searched in the following locations:
    file:/C:/Program Files/Android/Android Studio1/gradle/m2repository/com/android/tools/build/gradle/1.2.3/gradle-1.2.3.pom
    file:/C:/Program Files/Android/Android Studio1/gradle/m2repository/com/android/tools/build/gradle/1.2.3/gradle-1.2.3.jar
    http://maven.oschina.net/content/groups/public/com/android/tools/build/gradle/1.2.3/gradle-1.2.3.pom
    http://maven.oschina.net/content/groups/public/com/android/tools/build/gradle/1.2.3/gradle-1.2.3.jar
Required by:
    :AndroidNewWidgetsDemo:unspecified

wuxinxinggg avatar Oct 05 '15 06:10 wuxinxinggg