after updating android studio from dolphin to Electric Eel 2022.1.1 Android studio getting slow although its installation process or over All performance what more common step to increase performance of android studio thanks a lot in advance
CodePudding user response:
There are plenty of reasons why your IDE could suffer performance issues, but if you're saying you just updated to EE and all of a sudden it started performing poorly I'd suggest to:
- Try adjusting your memory settings:
- Make sure to update AGP as well, whenever you update Android Studio to make use of all the improvements and bug fixes.
CodePudding user response:
**
Getting error - Could not find method compileSdkVersion() for arguments [30] on project ':app' of type org.gradle.api.Project.
in below code.
**
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
android {
buildFeatures {
viewBinding = true
}
}
compileSdkVersion 30
buildToolsVersion "30.0.3"
defaultConfig {
applicationId "com.azhar.newsapp"
minSdkVersion 23
targetSdkVersion 30
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
androidExtensions {
experimental = true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'androidx.appcompat:appcompat:1.6.0'
implementation 'androidx.core:core-ktx:1.9.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.recyclerview:recyclerview:1.2.1'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
testImplementation 'junit:junit:4.13'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
implementation 'com.google.android.material:material:1.7.0'
implementation 'com.github.bumptech.glide:glide:4.11.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
implementation 'com.github.ivbaranov:materialfavoritebutton:0.1.5'
implementation 'com.ismaeldivita.chipnavigation:chip-navigation-bar:1.3.4'
implementation 'com.airbnb.android:lottie:3.5.0'
implementation 'org.ocpsoft.prettytime:prettytime:4.0.4.Final'
implementation 'com.github.sharish:ShimmerRecyclerView:v1.3'
implementation 'com.makeramen:roundedimageview:2.3.0'
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
implementation 'com.google.code.gson:gson:2.8.6'
implementation 'com.squareup.retrofit2:converter-scalars:2.5.0'
}
**Changed to below settings. still doesnt works**
android {
compileSdkVersion 30
buildToolsVersion "30.0.3"
defaultConfig {
applicationId "com.azhar.newsapp"
minSdkVersion 23
targetSdkVersion 30
versionCode 1
versionName "1.0"