Android Studio "The 'java' plugin has been applied, but it is not compatible with the Android plugins" Hatası

Katılım
15 Aralık 2016
Mesajlar
487
Çözümler
2
Yer
Kayseri
Daha fazla  
Cinsiyet
Erkek
Meslek
Elektrik elektronik mühendisi
The 'java' plugin has been applied, but it is not compatible with the Android plugins diye bir hata alıyorum.
JDK yüklü yardımcı olabilecek biri var mı?
 
Son düzenleyen: Moderatör:
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
repositories {
google()
jcenter()

}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'

// 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
}
Ekran alıntısı atabilirim.
 

Dosya Ekleri

  • TCH.PNG
    TCH.PNG
    37,5 KB · Görüntüleme: 102
Android studio neden çok hata veriyo alternatifi varmı.
apply plugin: 'com.android.application'

android {
compileSdkVersion 29
buildToolsVersion "29.0.0"
defaultConfig {
applicationId "com.example.myapplication"
minSdkVersion 11
targetSdkVersion 29
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
apply plugin: 'java'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
}
 
apply plugin: 'com.android.application'

android {
compileSdkVersion 29
buildToolsVersion "29.0.0"
defaultConfig {
applicationId "com.example.myapplication"
minSdkVersion 11
targetSdkVersion 29
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
apply plugin: 'java'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
}
Alıntınızda da işaretlediğim apply plugin: 'java' satırını silip, "Sync Now" deyin.

Android Studio neden çok hata veriyor? Alternatifi var mı?
Android Studio doğru kullanımda sıkıntısız çalışıyor.
 
Run da çaışıyo make projectte verdiği hata var.
Manifest merger failed : uses-sdk:minSdkVersion 11 cannot be smaller than version 14 declared in library [androidx.appcompat:appcompat:1.0.2] C:\Users\Can\.gradle\caches\transforms-2\files-2.1\62d81900dd971d0a7b4341140297d8f1\AndroidManifest.xml as the library might be using APIs not available in 11
Suggestion: use a compatible library with a minSdk of at most 11,
or increase this project's minSdk version to at least 14,
or use tools:eek:verrideLibrary="androidx.appcompat" to force usage (may lead to runtime failures)
Başka program varmı bu durmadan hata veriyor netbeans kullancaktım nbadroid eklentisi kakmış eclipse"de sdk yüklenmiyor.
 
Uyarı! Bu konu 5 yıl önce açıldı.
Muhtemelen daha fazla tartışma gerekli değildir ki bu durumda yeni bir konu başlatmayı öneririz. Eğer yine de cevabınızın gerekli olduğunu düşünüyorsanız buna rağmen cevap verebilirsiniz.

Yeni konular

Geri
Yukarı