AndroidStudio和它的GradlePlugin/JDK越来越糟糕(磁盘占用率100%,冻结,关闭Studio后进程仍然在运行)
创始人
2024-10-11 10:30:41
0

这可能是由于Gradle的版本不兼容所导致的。您可以尝试在您的项目中使用更稳定的Gradle版本。您可以通过更改项目级别的build.gradle文件来实现这一点:

buildscript {
    ext.kotlin_version = '1.4.21'
    repositories {
        google()
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:4.1.1'
    }
}

plugins {
    id 'com.android.application'
    id 'kotlin-android'
}

android {
    compileSdkVersion 30
    buildToolsVersion "30.0.2"

    defaultConfig {
        applicationId "com.example.myapplication"
        minSdkVersion 21
        targetSdkVersion 30
        versionCode 1
        versionName "1.0"

        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
        debug {
            debuggable true
        }
    }

    // add the following lines
    configurations.all {
        resolutionStrategy {
            force 'com.android.support:support-annotations:28.0.0'
        }
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'androidx.appcompat:appcompat:1.3.0-rc01'
    implementation 'com.google.android.material:material:1.3.0-rc02'
    testImplementation 'junit:junit:4.13.2'
    androidTestImplementation 'androidx.test.ext:junit:1.1.3'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
}

此外,尝试使用最新版本的Android Studio和JDK并确保您的计算机有足够的内存和CPU来运行它们。还可以尝试在Android Studio设置中调整内存限制。

相关内容

热门资讯

受玩家影响!微信自建房辅助多少... 受玩家影响!微信自建房辅助多少钱一个月,微信微乐游戏破解器,学习教程(有挂分享)-哔哩哔哩1、用户打...
透视攻略!wepoker透视破... 透视攻略!wepoker透视破解版,wepoker辅助器怎么弄(透视)推荐教程(揭秘有挂)-哔哩哔哩...
此事引发网友热议!德普辅助器怎... 此事引发网友热议!德普辅助器怎么用,如何判断wpk辅助软件的真假(透视)普及教程(有挂透明挂)-哔哩...
截至发稿!新西部牛牛辅助,微乐... 截至发稿!新西部牛牛辅助,微乐自建房脚本最新版本更新内容,手筋教程(有挂教学)-哔哩哔哩1、微乐自建...
今天下午!红龙poker辅助平... 今天下午!红龙poker辅助平台,We poker辅助器下载(透视)关于教程(真实有挂)-哔哩哔哩1...
截至目前!新星游辅助软件试用版... 截至目前!新星游辅助软件试用版,拱趴大菠萝辅助神器,举措教程(有挂助手)-哔哩哔哩1、新星游辅助软件...
今年以来!aapoker怎么拿... 今年以来!aapoker怎么拿好牌,wepoker私人局透视方法(透视)开挂教程(有挂分享)-哔哩哔...
于此同时!丽水都来脚本辅助,a... 于此同时!丽水都来脚本辅助,aapoker能控制牌吗,手段教程(了解有挂)-哔哩哔哩1、每一步都需要...
透视最新!wepoker一直输... 透视最新!wepoker一直输的号能继续打吗,wepoker免费脚本弱密码(透视)必备教程(真的有挂...
来临!wepoker透视器免费... 您好,微乐内蒙古自建房脚本免费下载这款游戏可以开挂的,确实是有挂的,需要了解加去威信【4852750...