Обнаружено исключение CircularReferenceException во время сборки проекта в Android Studio, неизвестно, связано ли оно с Gradle или зависимостями.
Циркулярная зависимость между следующими задачами:
:app:processDebugResources
--- :app:processDebugResources (*)
Исключение: -
org.gradle .api.CircularReferenceException: циклическая зависимость между следующими задачами:
:app:processDebugResources
--- :app:processDebugResources (*)
Это это мой файл AndroidManifest.xml:-
Это мой build.gradle.kts(:app) :-
plugins {
id("com.android.application")
id("com.google.gms.google-services")
}
android {
namespace = "com.example.e_commerce_application"
compileSdk = 34
defaultConfig {
applicationId = "com.example.e_commerce_application"
minSdk = 24
targetSdk = 34
versionCode = 1
versionName = "1.0"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
buildFeatures{
dataBinding = true
viewBinding = true
}
buildTypes {
release {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
}
dependencies {
implementation("androidx.appcompat:appcompat:1.6.1")
implementation("com.google.android.material:material:1.11.0")
implementation("androidx.constraintlayout:constraintlayout:2.1.4")
implementation("com.google.firebase:firebase-auth:22.3.1")
implementation("com.google.firebase:firebase-database:20.3.1")
implementation(project(":app"))
testImplementation("junit:junit:4.13.2")
androidTestImplementation("androidx.test.ext:junit:1.1.5")
androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
// Import the BoM for the Firebase platform
implementation(platform("com.google.firebase:firebase-bom:32.8.0"))
implementation("com.google.firebase:firebase-database")
// implementation("androidx.cardview:cardview:1.0.0")
}```
I tired changing the version of buildtools.I refered this youtube tutorial( .
Подробнее здесь: https://stackoverflow.com/questions/784 ... -in-gradle
Получение CircularReferenceException при обработке ресурсов отладки в Gradle ⇐ Android
Форум для тех, кто программирует под Android
1714448687
Гость
Обнаружено исключение CircularReferenceException во время сборки проекта в Android Studio, неизвестно, связано ли оно с Gradle или зависимостями.
[b]Циркулярная зависимость между следующими задачами:[/b]
[b]:app:processDebugResources
--- :app:processDebugResources[/b] (*)
[b]Исключение: -
org.gradle .api.CircularReferenceException: циклическая зависимость между следующими задачами:
:app:processDebugResources
--- :app:processDebugResources (*)[/b]
Это это мой файл [b]AndroidManifest.xml[/b]:-
[b]Это мой build.gradle.kts(:app) :-[/b]
plugins {
id("com.android.application")
id("com.google.gms.google-services")
}
android {
namespace = "com.example.e_commerce_application"
compileSdk = 34
defaultConfig {
applicationId = "com.example.e_commerce_application"
minSdk = 24
targetSdk = 34
versionCode = 1
versionName = "1.0"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
buildFeatures{
dataBinding = true
viewBinding = true
}
buildTypes {
release {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
}
dependencies {
implementation("androidx.appcompat:appcompat:1.6.1")
implementation("com.google.android.material:material:1.11.0")
implementation("androidx.constraintlayout:constraintlayout:2.1.4")
implementation("com.google.firebase:firebase-auth:22.3.1")
implementation("com.google.firebase:firebase-database:20.3.1")
implementation(project(":app"))
testImplementation("junit:junit:4.13.2")
androidTestImplementation("androidx.test.ext:junit:1.1.5")
androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
// Import the BoM for the Firebase platform
implementation(platform("com.google.firebase:firebase-bom:32.8.0"))
implementation("com.google.firebase:firebase-database")
// implementation("androidx.cardview:cardview:1.0.0")
}```
I tired changing the version of buildtools.I refered this youtube tutorial([youtube]UcxkuImuju8[/youtube] .
Подробнее здесь: [url]https://stackoverflow.com/questions/78405999/getting-circularreferenceexception-while-processing-debug-resources-in-gradle[/url]
Ответить
1 сообщение
• Страница 1 из 1
Перейти
- Кемерово-IT
- ↳ Javascript
- ↳ C#
- ↳ JAVA
- ↳ Elasticsearch aggregation
- ↳ Python
- ↳ Php
- ↳ Android
- ↳ Html
- ↳ Jquery
- ↳ C++
- ↳ IOS
- ↳ CSS
- ↳ Excel
- ↳ Linux
- ↳ Apache
- ↳ MySql
- Детский мир
- Для души
- ↳ Музыкальные инструменты даром
- ↳ Печатная продукция даром
- Внешняя красота и здоровье
- ↳ Одежда и обувь для взрослых даром
- ↳ Товары для здоровья
- ↳ Физкультура и спорт
- Техника - даром!
- ↳ Автомобилистам
- ↳ Компьютерная техника
- ↳ Плиты: газовые и электрические
- ↳ Холодильники
- ↳ Стиральные машины
- ↳ Телевизоры
- ↳ Телефоны, смартфоны, плашеты
- ↳ Швейные машинки
- ↳ Прочая электроника и техника
- ↳ Фототехника
- Ремонт и интерьер
- ↳ Стройматериалы, инструмент
- ↳ Мебель и предметы интерьера даром
- ↳ Cантехника
- Другие темы
- ↳ Разное даром
- ↳ Давай меняться!
- ↳ Отдам\возьму за копеечку
- ↳ Работа и подработка в Кемерове
- ↳ Давай с тобой поговорим...
Мобильная версия