После этой команды: ./gradlew clean assbledebug
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* Where:
Build file '/Users/kb/trial_app/android/app/build.gradle' line: 6
* What went wrong:
A problem occurred evaluating project ':app'.
> Plugin with id 'io.flutter.flutter-gradle-plugin' not found.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================
2: Task failed with an exception.
-----------
* What went wrong:
A problem occurred configuring project ':app'.
> compileSdkVersion is not specified. Please add it to build.gradle
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================
* Get more help at https://help.gradle.org
BUILD FAILED in 486ms
< /code>
пытался решить, используя GPT и Cluade, но не работал. Что все, что я уже пробовал: попробовал разные URL -адреса распределения, попытался разместить компиляцию SDK в конфигурации по умолчанию, но не работал. Уже обновленная трепетание тоже
my android/build.gradle:
buildscript {
// 1. Kotlin plugin version for Android builds
ext.kotlin_version = '1.8.20'
repositories {
google()
mavenCentral()
}
dependencies {
// 2. Android Gradle Plugin
classpath 'com.android.tools.build:gradle:7.3.0'
// 3. Kotlin Gradle plugin
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// 4. Google Services plugin for Firebase
classpath 'com.google.gms:google-services:4.3.15'
}
}
// 5. Shared repositories for all subprojects
allprojects {
repositories {
google()
mavenCentral()
}
}
// 6. Clean task to remove the build directory
task clean(type: Delete) {
delete rootProject.buildDir
}
App/build.gradle:
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
// 2. Apply the Google Services plugin for Firebase
apply plugin: 'com.google.gms.google-services'
// 3. Apply Flutter's Gradle plugin
apply plugin: 'io.flutter.flutter-gradle-plugin'
android {
// 4. Your application namespace
namespace 'com.kk.g_app'
compileSdkVersion 33
defaultConfig {
applicationId 'com.kk.g_app'
minSdkVersion 23
targetSdkVersion 33
versionCode 1
versionName '1.0'
}
// 5. Java/Kotlin compatibility
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = '11'
}
buildTypes {
release {
// No code shrinking by default
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
// 6. Firebase BOM and Analytics
implementation platform('com.google.firebase:firebase-bom:33.10.0')
implementation 'com.google.firebase:firebase-analytics'
}
Подробнее здесь: https://stackoverflow.com/questions/796 ... roject-app
Получение ошибки: возникла проблема, оценивая проект ': приложение' ⇐ Android
Форум для тех, кто программирует под Android
-
Anonymous
1746124988
Anonymous
После этой команды: ./gradlew clean assbledebug
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* Where:
Build file '/Users/kb/trial_app/android/app/build.gradle' line: 6
* What went wrong:
A problem occurred evaluating project ':app'.
> Plugin with id 'io.flutter.flutter-gradle-plugin' not found.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================
2: Task failed with an exception.
-----------
* What went wrong:
A problem occurred configuring project ':app'.
> compileSdkVersion is not specified. Please add it to build.gradle
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================
* Get more help at https://help.gradle.org
BUILD FAILED in 486ms
< /code>
пытался решить, используя GPT и Cluade, но не работал. Что все, что я уже пробовал: попробовал разные URL -адреса распределения, попытался разместить компиляцию SDK в конфигурации по умолчанию, но не работал. Уже обновленная трепетание тоже
my android/build.gradle:
buildscript {
// 1. Kotlin plugin version for Android builds
ext.kotlin_version = '1.8.20'
repositories {
google()
mavenCentral()
}
dependencies {
// 2. Android Gradle Plugin
classpath 'com.android.tools.build:gradle:7.3.0'
// 3. Kotlin Gradle plugin
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// 4. Google Services plugin for Firebase
classpath 'com.google.gms:google-services:4.3.15'
}
}
// 5. Shared repositories for all subprojects
allprojects {
repositories {
google()
mavenCentral()
}
}
// 6. Clean task to remove the build directory
task clean(type: Delete) {
delete rootProject.buildDir
}
App/build.gradle:
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
// 2. Apply the Google Services plugin for Firebase
apply plugin: 'com.google.gms.google-services'
// 3. Apply Flutter's Gradle plugin
apply plugin: 'io.flutter.flutter-gradle-plugin'
android {
// 4. Your application namespace
namespace 'com.kk.g_app'
compileSdkVersion 33
defaultConfig {
applicationId 'com.kk.g_app'
minSdkVersion 23
targetSdkVersion 33
versionCode 1
versionName '1.0'
}
// 5. Java/Kotlin compatibility
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = '11'
}
buildTypes {
release {
// No code shrinking by default
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
// 6. Firebase BOM and Analytics
implementation platform('com.google.firebase:firebase-bom:33.10.0')
implementation 'com.google.firebase:firebase-analytics'
}
Подробнее здесь: [url]https://stackoverflow.com/questions/79602307/getting-error-a-problem-occurred-evaluating-project-app[/url]
Ответить
1 сообщение
• Страница 1 из 1
Перейти
- Кемерово-IT
- ↳ Javascript
- ↳ C#
- ↳ JAVA
- ↳ Elasticsearch aggregation
- ↳ Python
- ↳ Php
- ↳ Android
- ↳ Html
- ↳ Jquery
- ↳ C++
- ↳ IOS
- ↳ CSS
- ↳ Excel
- ↳ Linux
- ↳ Apache
- ↳ MySql
- Детский мир
- Для души
- ↳ Музыкальные инструменты даром
- ↳ Печатная продукция даром
- Внешняя красота и здоровье
- ↳ Одежда и обувь для взрослых даром
- ↳ Товары для здоровья
- ↳ Физкультура и спорт
- Техника - даром!
- ↳ Автомобилистам
- ↳ Компьютерная техника
- ↳ Плиты: газовые и электрические
- ↳ Холодильники
- ↳ Стиральные машины
- ↳ Телевизоры
- ↳ Телефоны, смартфоны, плашеты
- ↳ Швейные машинки
- ↳ Прочая электроника и техника
- ↳ Фототехника
- Ремонт и интерьер
- ↳ Стройматериалы, инструмент
- ↳ Мебель и предметы интерьера даром
- ↳ Cантехника
- Другие темы
- ↳ Разное даром
- ↳ Давай меняться!
- ↳ Отдам\возьму за копеечку
- ↳ Работа и подработка в Кемерове
- ↳ Давай с тобой поговорим...
Мобильная версия