簡體   English   中英

如何修復我的Android Studio IDE? (錯誤23,24;錯誤26,13,缺少類和渲染問題)

[英]How can I repair my Android Studio IDE? (Error 23,24 ; Error 26,13 , missing classes and render problems)

我已經下載了Android Studio,從那以后一直給我帶來麻煩。 我已經將其重新安裝了3次,但我已經查找了這些問題,但找不到解決方案!

看起來是這樣的:

在此處輸入圖片說明

看來我無法通過下面顯示的2個錯誤(23,24; 26,13)。 請注意,如果我單擊“安裝存儲庫並同步項目”,它將無法使用。 另外,由於存在渲染問題和缺少類,我的設計窗口看起來也很糟糕。

您缺少Gradle同步項目所需的工具集。 您需要安裝這些appcompat和espresso庫。 您說“安裝存儲庫和同步項目”按鈕“不起作用”,但是您能否弄清楚這是什么意思? 當您單擊該按鈕時會發生什么?

共享build.gradle文件可能會有所幫助。

這是我的build.gridle文件:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 26
    buildToolsVersion "26.0.1"
    defaultConfig {
        applicationId "com.example.black.prima"
        minSdkVersion 15
        targetSdkVersion 26
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    compile 'com.android.support:appcompat-v7:26.+'
    compile 'com.android.support.constraint:constraint-layout:1.0.2'
    testCompile 'junit:junit:4.12'
}

我遇到了同樣的問題,我嘗試了很多這些建議。 我嘗試反復嘗試重新安裝,並嘗試刪除剩余的所有文件,我在Windows計算機上擁有我的帳戶,並在計算機上設置了來賓帳戶,因此我嘗試在來賓帳戶上進行全新安裝,並注意到我不是從官方網站下載的,所以我確保我是從官方網站下載的,新工作室沒有出現錯誤

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM