Я обновил свою версию Gradle до последней версии, и теперь мой проект не может быть собран. Следующие ошибки отображаются в logcat при создании проекта.
FAILURE: Build failed with an exception.
* What went wrong:
Some problems were found with the configuration of task ':app:generateDebugApolloIR' (type 'ApolloIRGenTask').
- In plugin 'com.amazonaws.appsync' type 'com.apollographql.apollo.gradle.ApolloIRGenTask' field 'extension' without corresponding getter has been annotated with @Internal.
Reason: Annotations on fields are only used if there's a corresponding getter for the field.
Я пытался перестроить проект, очистить проект, аннулировать кеши. Но все еще с той же проблемой. Мой уровень проекта build.gradle:
dependencies {
classpath 'com.android.tools.build:gradle:7.3.1'
classpath 'com.google.gms:google-services:4.3.14'
classpath 'com.google.ar.sceneform:plugin:1.17.1'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.2'
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10'
classpath 'com.amplifyframework:amplify-tools-gradle-plugin:1.0.1'
classpath "com.amazonaws:aws-android-sdk-appsync-gradle-plugin:3.1.0"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Уровень приложения build.gradle
//AWS
implementation 'com.amplifyframework:core:1.29.0' //updated
implementation 'com.amplifyframework:aws-api:1.28.3' //updated
implementation 'com.amplifyframework:aws-datastore:1.28.3' //updated
implementation 'com.amazonaws:aws-android-sdk-appsync:3.1.1' //updated
implementation 'com.amazonaws:aws-android-sdk-s3:2.35.0' //updated
Обновите версии вашей библиотеки
построить уровень проекта Gradle
dependencies {
classpath 'com.android.tools.build:gradle:7.3.1'
classpath 'com.google.gms:google-services:4.3.14'
classpath 'com.google.ar.sceneform:plugin:1.17.1'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.2'
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10'
classpath 'com.amplifyframework:amplify-tools-gradle-plugin:1.0.1'
classpath "com.amazonaws:aws-android-sdk-appsync-gradle-plugin:3.3.0"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
построить уровень приложения Gradle
//AWS
implementation 'com.amplifyframework:core:1.31.3' //updated 1.31.3
implementation 'com.amplifyframework:aws-api:1.28.3' //updated
implementation 'com.amplifyframework:aws-datastore:1.28.3' //updated
implementation 'com.amazonaws:aws-android-sdk-appsync:3.3.0' //updated 3.3.0
implementation 'com.amazonaws:aws-android-sdk-s3:2.40.0' //updated 2.40.0
построить проект сейчас, он будет работать
позвольте мне проверить, я дам вам знать