gpt4 book ai didi

android - 找不到 Firebase 文件异常

转载 作者:塔克拉玛干 更新时间:2023-11-02 20:14:45 24 4
gpt4 key购买 nike

我在 Rideshare 应用程序中使用 Firebase 数据库,我试图将代码转储到设备中,它显示文件未找到异常,其中 Jackson 数据绑定(bind)库文件未在构建时集成。我需要清理它并用 gradle 运行它 10 或 15 次,然后安装一次。我正在将 Firebase 数据快照转换为代码中的自定义 Java 对象,Jackson 库文件丢失,最终映射失败。也尝试删除旧版 Api,结果又崩溃了一次。有人帮帮我。

这是我一直遇到的错误:

Error:Failed to capture snapshot of output files for task 'transformClassesWithDexForDebug' during up-to-date check.

java.io.FileNotFoundException: D:\FirebaseDBTesting\app\build\intermediates\transforms\dex\debug\folders\1000\10\jackson-databind-2.2.2_502dac698d8ab87b5c73024fb2c1baa4c979a770\classes.dex (The system cannot find the file specified)

这是我的 gradle 文件:

apply plugin: 'com.android.application'

android {
packagingOptions {
exclude 'META-INF/DEPENDENCIES.txt'
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/dependencies.txt'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/LICENSE'
exclude 'META-INF/license.txt'
exclude 'META-INF/LGPL2.1'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/notice.txt'
}
compileSdkVersion 23
buildToolsVersion "24.0.3"
defaultConfig {
applicationId "com.example.xinthe.firebasedbtesting"
minSdkVersion 17
targetSdkVersion 23
versionCode 1
versionName "1.0"
multiDexEnabled true
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
dexOptions {
javaMaxHeapSize "4g"
}
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:23.4.0'
compile 'com.google.firebase:firebase-database:10.0.1'
compile 'com.firebase:geofire-android:2.1.1'
compile 'com.google.firebase:firebase-crash:10.0.1'
compile 'com.google.firebase:firebase-auth:10.0.1'
compile 'com.firebase:firebase-client-android:2.5.2'
compile 'com.android.support:multidex:1.0.1'
compile 'com.android.support:design:23.4.0'
compile 'com.google.android.gms:play-services-maps:10.0.1'
compile 'com.google.android.gms:play-services-location:10.0.1'
compile 'com.android.support:support-v4:23.4.0'
compile 'com.serhatsurguvec.libraries:continuablecirclecountdownview:1.2'
testCompile 'junit:junit:4.12'
}
apply plugin: 'com.google.gms.google-services'

最佳答案

首先尝试清理并重建您的项目。

然后打开 File --> Invalidate Caches/Restart ,点击蓝色按钮 Invalidate Caches/Restart。

关于android - 找不到 Firebase 文件异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41440057/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com