Пытаюсь подключиться к GraphQL с помощью Apollo Client, в build.gradle подключил все зависимости, добавил schame.json, добавил запросы которые мне нужны, но при Rebuild Project выдает ошибку ERROR: Value 'main GraphQL source' specified for property '$1' cannot be converted to a file.
Еще один вопрос, не сыроватая ли технология чтобы использовать GraphQL в своих проектах или использовать старый-добрый REST API?
build.gradle (project)
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.1'
classpath 'com.apollographql.apollo:apollo-gradle-plugin:0.4.2'
classpath 'com.amazonaws:aws-android-sdk-appsync-gradle-plugin:2.8.3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
build.gradle (app)
apply plugin: 'com.android.application'
apply plugin: 'com.apollographql.android'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.example.firstgraphqlapollo"
minSdkVersion 15
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.apollographql.apollo:apollo-runtime:0.4.2'
implementation "com.apollographql.apollo:apollo-android-support:0.3.2"
implementation 'com.squareup.okhttp3:okhttp:3.12.0'
}
repositories {
jcenter()
}
Непосредственно schema.json и (запрос) GetAll.graphql
и конечно же сама ошибка((