سلام بچه ها
من این اررور رو تازه میگیرم قبلا نبودش
هر کار میکنم نمیدونم چکارش کنم
Build.gradle این فایل
plugins {
id 'com.android.application'
}
android {
compileSdkVersion 30
buildToolsVersion "30.0.3"
defaultConfig {
applicationId "com.example.mvp_sample_todolist"
minSdkVersion 16
targetSdkVersion 30
versionCode 1
versionName "1.0"
vectorDrawables.useSupportLibrary(true)
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled 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.3.0'
implementation 'com.google.android.material:material:1.3.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
def room_version = "2.3.0"
implementation("androidx.room:room-runtime:$room_version")
annotationProcessor "androidx.room:room-compiler:$room_version"
}
اینم متن اررور
Execution failed for task ':app:javaPreCompileDebug'.
> Could not resolve all files for configuration ':app:debugAnnotationProcessorClasspath'.
> Could not find annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/androidx/annotation/annotation/1.1.0/annotation-1.1.0.jar
Possible solution:
- Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
من حتی پوشه .gradle و Build پروژه رو پاک کردم اما درست نشد
تنها چیزی که میئونم اینه که این اررور از annotationProcessor لایببری رووم هست چون وقتی پاکش میکنم دیگه همچین اروری نمیده
سلام وقت بخیر
با یک شکن دیگه امتحان کنین پیشنهاد من windscribe هست .
مشکل رفع شد
ورژن گردلم 6.7.1 بود که تبدیلش کردم به 7.1
گردل جدید رو دان کرد بعدش اوکی شد .
فکر کنم این مشکل واسه خیلی از دوستان به وجود اومده و احتمالا به خاطر این باشه که یکی از فایل های گردل به یه نحوی پاک شده و این جوری شده.