Avi*_*Roy 7 android firebase build.gradle geofire
我在Rideshare应用程序中使用Firebase数据库,我正在尝试将代码转储到设备中,它向我显示文件未找到例外,其中Jackson数据绑定库文件未在构建时集成.我需要清理它和gradle运行它10或15次然后它安装一次.我正在将Firebase数据快照转换为我的代码中的自定义java对象,并且Jackson库文件丢失,最终映射失败.尝试删除传统的Api,只是再次看到它崩溃.有人帮助我.
这是我一直得到的错误:
错误:在最新检查期间无法捕获任务'transformClassesWithDexForDebug'的输出文件的快照.
java.io.FileNotFoundException:D:\ FirebaseDBTesting\app\build\intermediates\transforms\dex\debug\folders\1000\10\jackson-databind-2.2.2_502dac698d8ab87b5c73024fb2c1baa4c979a770\classes.dex(系统找不到指定的文件)
这是我的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'
Run Code Online (Sandbox Code Playgroud)
小智 0
首先尝试此方法来清理并重建您的项目。
然后打开 File --> Invalidate Caches / Restart ,单击蓝色按钮 Invalidate Caches / Restart。
| 归档时间: |
|
| 查看次数: |
1222 次 |
| 最近记录: |