Closed songyunbiao closed 6 years ago
@sav007 @ghostbuster91 Can you help me with that? Less than or equal to 0.4.1 compile OK,but greater than 0.4.2 compile error。
pls give it a try new version 0.5.0
and try to clean and rebuild.
thank you for your reply,but it doesn't work。@sav007
could you please dump the dependency graph for your project by running:
./gradlew :YOUR_MODULE_NAME:dependencies
compile - Classpath for compiling the main sources. +--- com.android.support:leanback-v17:26.0.2 | +--- com.android.support:support-compat:26.0.2 | | --- com.android.support:support-annotations:26.0.2 | +--- com.android.support:support-core-ui:26.0.2 | | +--- com.android.support:support-annotations:26.0.2 | | --- com.android.support:support-compat:26.0.2 () | +--- com.android.support:support-media-compat:26.0.2 | | +--- com.android.support:support-annotations:26.0.2 | | --- com.android.support:support-compat:26.0.2 () | +--- com.android.support:support-fragment:26.0.2 | | +--- com.android.support:support-compat:26.0.2 () | | +--- com.android.support:support-core-ui:26.0.2 () | | --- com.android.support:support-core-utils:26.0.2 | | +--- com.android.support:support-annotations:26.0.2 | | --- com.android.support:support-compat:26.0.2 () | --- com.android.support:recyclerview-v7:26.0.2 | +--- com.android.support:support-annotations:26.0.2 | +--- com.android.support:support-compat:26.0.2 () | --- com.android.support:support-core-ui:26.0.2 () +--- com.android.support:appcompat-v7:26.0.2 | +--- com.android.support:support-annotations:26.0.2 | +--- com.android.support:support-v4:26.0.2 | | +--- com.android.support:support-compat:26.0.2 () | | +--- com.android.support:support-media-compat:26.0.2 () | | +--- com.android.support:support-core-utils:26.0.2 () | | +--- com.android.support:support-core-ui:26.0.2 () | | --- com.android.support:support-fragment:26.0.2 () | +--- com.android.support:support-vector-drawable:26.0.2 | | +--- com.android.support:support-annotations:26.0.2 | | --- com.android.support:support-compat:26.0.2 () | --- com.android.support:animated-vector-drawable:26.0.2 | +--- com.android.support:support-vector-drawable:26.0.2 () | --- com.android.support:support-core-ui:26.0.2 () +--- com.android.support:preference-v7:26.0.2 | +--- com.android.support:support-v4:26.0.2 () | +--- com.android.support:appcompat-v7:26.0.2 () | --- com.android.support:recyclerview-v7:26.0.2 () +--- com.android.support:preference-leanback-v17:26.0.2 | +--- com.android.support:support-v4:26.0.2 () | +--- com.android.support:appcompat-v7:26.0.2 () | +--- com.android.support:recyclerview-v7:26.0.2 () | +--- com.android.support:preference-v7:26.0.2 () | +--- com.android.support:preference-v14:26.0.2 | | +--- com.android.support:support-v4:26.0.2 () | | +--- com.android.support:appcompat-v7:26.0.2 () | | +--- com.android.support:recyclerview-v7:26.0.2 () | | --- com.android.support:preference-v7:26.0.2 () | --- com.android.support:leanback-v17:26.0.2 () +--- com.android.support:preference-v14:26.0.2 () +--- com.github.mjdev:libaums:0.5.5 | --- com.android.support:support-annotations:25.1.0 -> 26.0.2 +--- com.android.support:multidex:1.0.1 +--- :AlivcReporter: +--- :AlivcPlayer: +--- :AliyunVodPlayer: +--- :AliyunVodPlayerView: --- project :common +--- com.android.support:design:26.0.2 | +--- com.android.support:support-v4:26.0.2 () | +--- com.android.support:appcompat-v7:26.0.2 () | +--- com.android.support:recyclerview-v7:26.0.2 () | --- com.android.support:transition:26.0.2 | +--- com.android.support:support-annotations:26.0.2 | --- com.android.support:support-v4:26.0.2 () +--- com.android.support:cardview-v7:26.0.2 | --- com.android.support:support-annotations:26.0.2 +--- com.android.support:recyclerview-v7:26.0.2 () +--- com.android.support:percent:26.0.2 | --- com.android.support:support-compat:26.0.2 () +--- com.tencent.bugly:crashreport_upgrade:1.3.4 +--- com.jakewharton.timber:timber:4.0.1 +--- com.facebook.stetho:stetho:1.3.1 | +--- com.google.code.findbugs:jsr305:2.0.1 -> 3.0.1 | --- commons-cli:commons-cli:1.2 +--- com.facebook.stetho:stetho-okhttp3:1.3.1 | +--- com.google.code.findbugs:jsr305:2.0.1 -> 3.0.1 | +--- com.squareup.okhttp3:okhttp:3.0.1 -> 3.9.0 | | --- com.squareup.okio:okio:1.13.0 | --- com.facebook.stetho:stetho:1.3.1 () +--- com.squareup.okhttp3:okhttp:3.9.0 () +--- com.alibaba:fastjson:1.2.40 +--- com.github.bumptech.glide:glide:4.3.1 | +--- com.github.bumptech.glide:gifdecoder:4.3.1 | | --- com.android.support:support-annotations:26.0.2 | +--- com.github.bumptech.glide:disklrucache:4.3.1 | --- com.github.bumptech.glide:annotations:4.3.1 +--- com.squareup.picasso:picasso:2.5.2 +--- com.jakewharton.threetenabp:threetenabp:1.0.5 | --- org.threeten:threetenbp:1.3.3 +--- com.google.zxing:core:3.3.0 +--- com.github.iwgang:countdownview:2.1.6 +--- com.github.ctiao:DanmakuFlameMaster:0.4.6 +--- com.apollographql.apollo:apollo-runtime:0.5.0 | +--- com.squareup.okhttp3:okhttp:3.8.1 -> 3.9.0 (*) | +--- com.nytimes.android:cache:2.0.2 | | --- com.google.code.findbugs:jsr305:3.0.1 | --- com.apollographql.apollo:apollo-api:0.5.0 | +--- com.google.code.findbugs:jsr305:3.0.1 | --- javax.annotation:jsr250-api:1.0 +--- com.apollographql.apollo:apollo-android-support:0.5.0 --- com.squareup.leakcanary:leakcanary-android-no-op:1.5 @sav007
Seems right, could you please check the version of apollo gradle plugin?
apollo gradle plugin classpath 'com.apollographql.apollo:gradle-plugin:0.4.1' @sav007
well, this is your issue, it must be the same version as the rest dependencies, 0.5.0
but don't have classpath 'com.apollographql.apollo:gradle-plugin:0.5.0' error message:
Error:Could not find com.apollographql.apollo:gradle-plugin:0.5.0. Searched in the following locations: file:/Applications/Android Studio.app/Contents/gradle/m2repository/com/apollographql/apollo/gradle-plugin/0.5.0/gradle-plugin-0.5.0.pom file:/Applications/Android Studio.app/Contents/gradle/m2repository/com/apollographql/apollo/gradle-plugin/0.5.0/gradle-plugin-0.5.0.jar http://maven.aliyun.com/nexus/content/repositories/releases/com/apollographql/apollo/gradle-plugin/0.5.0/gradle-plugin-0.5.0.pom http://maven.aliyun.com/nexus/content/repositories/releases/com/apollographql/apollo/gradle-plugin/0.5.0/gradle-plugin-0.5.0.jar https://oss.sonatype.org/content/repositories/snapshots/com/apollographql/apollo/gradle-plugin/0.5.0/gradle-plugin-0.5.0.pom https://oss.sonatype.org/content/repositories/snapshots/com/apollographql/apollo/gradle-plugin/0.5.0/gradle-plugin-0.5.0.jar https://maven.google.com/com/apollographql/apollo/gradle-plugin/0.5.0/gradle-plugin-0.5.0.pom https://maven.google.com/com/apollographql/apollo/gradle-plugin/0.5.0/gradle-plugin-0.5.0.jar https://jitpack.io/com/apollographql/apollo/gradle-plugin/0.5.0/gradle-plugin-0.5.0.pom https://jitpack.io/com/apollographql/apollo/gradle-plugin/0.5.0/gradle-plugin-0.5.0.jar https://jcenter.bintray.com/com/apollographql/apollo/gradle-plugin/0.5.0/gradle-plugin-0.5.0.pom https://jcenter.bintray.com/com/apollographql/apollo/gradle-plugin/0.5.0/gradle-plugin-0.5.0.jar https://plugins.gradle.org/m2/com/apollographql/apollo/gradle-plugin/0.5.0/gradle-plugin-0.5.0.pom https://plugins.gradle.org/m2/com/apollographql/apollo/gradle-plugin/0.5.0/gradle-plugin-0.5.0.jar Required by: project : @sav007
compile 'com.apollographql.apollo:apollo-runtime:0.4.4' compile 'com.apollographql.apollo:apollo-android-support:0.4.4'
xxx/android/common/build/generated/source/apollo/com/xx/xx/xxxQuery.java
ResponseField.forObjectList("entries", "entries", null, true, Collections.emptyList()),
xx.graphql
query xxxQuery { shop{ entries{ desc } } }