[英]Unknown error in android studio.(resources)
我最近一直在開發一個應用程序。 它在第一個上運行良好,但一段時間后構建開始失敗,並在日志中提到這一點
AAPT: error: failed writing to 'C:\Users\Dr.Nickson\Desktop\GitHub\FutureFurnitureUI-Android\app\build\intermediates\runtime_symbol_list\debug\R.txt': The data is invalid. (13).
因為我認為這應該是資源中的錯誤,但我不知道或者我可能是錯的。 紅色波浪線顯示在“app”目錄下。
我還查找了 R.txt.data is inavlid(13) 解決方案和更新的插件和 gradle 版本,我認為它變得更糟。 這是我的 build.gradle 文件
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.shashank.platform.furnitureecommerceappui"
minSdkVersion 21
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support:cardview-v7:28.0.0'
implementation 'de.hdodenhof:circleimageview:3.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}
這是 gradle-wrapper.properties 文件
#Mon Nov 09 06:54:21 IST 2020
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip
IDE 提供的唯一幫助是我看到的 app 目錄下的波浪形紅線。 任何幫助將不勝感激,因為我已經堅持了 2 周。
我遇到了同樣的問題,結果我的平均防病毒軟件由於某種原因阻止了應用程序的構建。 檢查您的防病毒軟件並授予允許構建應用程序的權限。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.