![](/img/trans.png)
[英]SQLSyntaxErrorException: Table/View 'BUYER' does not exist. What is missing?
[英]What does mean “specified for property 'resDir' does not exist.”
當我構建我的項目時。 Gradle結果是阻塞的(我在某些代碼中使用數據綁定)
錯誤:找到任務':app:processDebugAndroidTestResources'的配置問題。>目錄'C:\\ Users \\ user \\ Desktop \\“我的項目loaction”\\ app \\ build \\ intermediates \\ data-binding-layout-out \\為屬性'resDir'指定的androidTest \\ debug'不存在。
我嘗試了很多方法(例如:gradle設置,Android stdio設置重置,禁用即時運行,只做空目錄)。 但這種方法對我不起作用。 有什么解決方案嗎?
Adnroid stuidio:ver 2.2.3
Gradle:版本3.2(使用本地)
設置(構建,執行,部署)
buildscript { repositories { maven { url "https://plugins.gradle.org/m2/" } } dependencies { classpath "gradle.plugin.me.tatarka:gradle-retrolambda:3.4.0" } } apply plugin: 'com.android.application' //Can lambda expression in android apply plugin: "me.tatarka.retrolambda" android { compileSdkVersion 23 buildToolsVersion '23.0.3' defaultConfig { applicationId "My project package name" minSdkVersion 21 versionCode 1 versionName "1.0" } buildTypes { // This code block is adding app version at apk file applicationVariants.all { variant -> variant.outputs.each { output -> output.outputFile = new File( output.outputFile.parent, output.outputFile.name.replace(".apk", "-${variant.versionName}.apk")) } } debug { minifyEnabled false shrinkResources false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } release { minifyEnabled true shrinkResources false zipAlignEnabled true debuggable false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } compileOptions { encoding = 'windows-1251'// write your encoding here sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } dataBinding { enabled = true } } repositories { maven { url "https://jitpack.io" } maven { url "https://repo.eclipse.org/content/repositories/paho-releases/" } } dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') "Library inclue" }
我通過刪除項目目錄中的.gradle /目錄並啟動新版本來修復此問題。
刪除build/
目錄在我的項目的根和build/
我的所有模塊的目錄解決了這個問題。
刪除root .build和.idea目錄。 讓項目再次解決了這個問題。 然而,我花了24分鍾來建造這個項目。
似乎是在Studio 2.3 Beta 1中修復的。
在我的特定場景中,在切換./gradlew :app:installDebug
之后調用./gradlew :app:installDebug
一次暫時修復了問題。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.