android thumbs.db 错误

eclipse 编译的时候只要进到 res文件夹里面打开或者修改了 某个文件,就会出现这样的thumbs.db 错误。

在eoeandroid 论坛查询得知是缩略图

避免今后一直出现这样的错误提示,按照如下操作

  1 .打开工具栏——文件夹选项
  2 .点击查看
  3 .打勾,不缓存缩略图
  4 .确定

会是因为Firebase那些依赖问题嘛,下面是我的launcherTemplate.gradle配置: apply plugin: 'com.android.application' apply plugin: 'com.google.gms.google-services' apply plugin: 'com.google.firebase.crashlytics' buildscript { // repositories { // google() // mavenCentral() // } repositories { google() mavenCentral() } dependencies { // Must be Android Gradle Plugin 3.6.0 or later. For a list of // compatible Gradle versions refer to: // https://developer.android.com/studio/releases/gradle-plugin // classpath 'com.android.tools.build:gradle:3.6.0' // For Unity2019.4.9, version of gradle:5.1.1, we use:3.4.3 // see https://android-developers.googleblog.com/2020/07/preparing-your-build-for-package-visibility-in-android-11.html // see https://developers.google.com/ar/develop/unity/android-11-build //classpath 'com.android.tools.build:gradle:7.4.2' classpath 'com.google.gms:google-services:4.4.3' classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.9' //classpath 'com.google.firebase:firebase-crashlytics-gradle:2.7.1' } } dependencies { implementation project(':unityLibrary') // api 'com.alibaba:fastjson:1.2.73' implementation 'androidx.legacy:legacy-support-v4:1.0.0' implementation 'androidx.appcompat:appcompat:1.3.0-alpha02' implementation 'com.google.android.material:material:1.3.0' testImplementation 'junit:junit:4.+' androidTestImplementation 'androidx.test.ext:junit:1.1.2' androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0' implementation 'com.android.billingclient:billing:7.0.0' } android { namespace "**NAMESPACE**" ndkPath "**NDKPATH**" compileSdkVersion **APIVERSION** buildToolsVersion '**BUILDTOOLS**' compileOptions { sourceCompatibility JavaVersion.VERSION_11 targetCompatibility JavaVersion.VERSION_11 } defaultConfig { minSdkVersion **MINSDKVERSION** targetSdkVersion **TARGETSDKVERSION** applicationId '**APPLICATIONID**' ndk { abiFilters **ABIFILTERS** // abiFilters "armeabi-v7a" , "arm64-v8a", "x86" } versionCode **VERSIONCODE** versionName '**VERSIONNAME**' } aaptOptions { noCompress = ['.unity3d', '.ress', '.resource', '.obb', '.bundle', '.unityexp'] + unityStreamingAssets.tokenize(', ') ignoreAssetsPattern = "!.svn:!.git:!.ds_store:!*.scc:!CVS:!thumbs.db:!picasa.ini:!*~" } signingConfigs { release { storeFile file('E:/Jenkins/workspace/girls/samsung/client/girlsumm.keystore') storePassword 'yinhe2077' keyAlias 'yinhe' keyPassword 'yinhe2077' } } lintOptions { abortOnError false } buildTypes { debug { minifyEnabled **MINIFY_DEBUG** // proguardFiles getDefaultProguardFile('proguard-android.txt')**SIGNCONFIG** jniDebuggable true } release { minifyEnabled **MINIFY_RELEASE** // proguardFiles getDefaultProguardFile('proguard-android.txt')**SIGNCONFIG** } }**PACKAGING_OPTIONS****SPLITS** **BUILT_APK_LOCATION** bundle { language { enableSplit = false } density { enableSplit = false } abi { enableSplit = true } } }**SPLITS_VERSION_CODE****LAUNCHER_SOURCE_BUILD_SETUP** task copyStringXML(type: Copy) { from("${project.rootDir}/unityLibrary/unity-android-resources/res/values") { include "**" } into "${project.projectDir}/src/main/res/values" include("${project.projectDir}/src/main/res/values/strings.xml") } preBuild.dependsOn(copyStringXML) task copyGoogleJson { copy { from "${project.rootDir}/../../Assets/Plugins/Android/google-services.json" into "${project.projectDir}/src/main" include("google-services.json") } } preBuild.dependsOn(copyGoogleJson) tasks.whenTaskAdded { task -> if (task.name.startsWith("bundle")) { def renameTaskName = "rename${task.name.capitalize()}Aab" def flavor = task.name.substring("bundle".length()).uncapitalize() tasks.create(renameTaskName, Copy) { def path = "${buildDir}/outputs/bundle/${flavor}/" from(path) include "launcher-release.aab" destinationDir file("${buildDir}/outputs/bundle/${flavor}/") rename "launcher-release.aab", "launcher.aab" } task.finalizedBy(renameTaskName) } } 以下是mainTemplate.gradle: // GENERATED BY UNITY. REMOVE THIS COMMENT TO PREVENT OVERWRITING WHEN EXPORTING AGAIN // plugins { // id 'com.android.library' // //id 'com.google.gms.google-services' // 启用 Firebase // //id 'com.google.firebase.crashlytics' // 启用 Crashlytics // } configurations { compileClasspath } apply plugin: 'com.android.library' //**APPLY_PLUGINS** dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation(platform("com.google.firebase:firebase-bom:33.4.0")) implementation "com.google.firebase:firebase-auth" implementation "com.google.firebase:firebase-firestore" // implementation 'com.google.android.gms:play-services-ads:23.3.0' // Android Resolver Dependencies Start implementation 'androidx.appcompat:appcompat:1.3.0-alpha02' // Assets/TradplusSDK/Networks/Android/n40/Editor/Dependencies.xml:8 implementation 'androidx.legacy:legacy-support-v4:1.0.0' // Assets/TradplusSDK/Networks/Android/n40/Editor/Dependencies.xml:6 implementation 'com.android.support:appcompat-v7:25.3.1' // Facebook.Unity.Editor.AndroidSupportLibraryResolver.addSupportLibraryDependency implementation 'com.android.support:cardview-v7:25.3.1' // Facebook.Unity.Editor.AndroidSupportLibraryResolver.addSupportLibraryDependency implementation 'com.android.support:customtabs:25.3.1' // Facebook.Unity.Editor.AndroidSupportLibraryResolver.addSupportLibraryDependency implementation 'com.android.support:support-v4:25.3.1' // Facebook.Unity.Editor.AndroidSupportLibraryResolver.addSupportLibraryDependency implementation 'com.applovin:applovin-sdk:13.0.0' // Assets/TradplusSDK/Networks/Android/n9/Editor/Dependencies.xml:10 implementation 'com.facebook.android:facebook-applinks:[17.0.0,18)' // Assets/FacebookSDK/Plugins/Editor/Dependencies.xml:6 implementation 'com.facebook.android:facebook-core:[17.0.0,18)' // Assets/FacebookSDK/Plugins/Editor/Dependencies.xml:5 implementation 'com.facebook.android:facebook-gamingservices:[17.0.0,18)' // Assets/FacebookSDK/Plugins/Editor/Dependencies.xml:9 implementation 'com.facebook.android:facebook-login:[17.0.0,18)' // Assets/FacebookSDK/Plugins/Editor/Dependencies.xml:7 implementation 'com.facebook.android:facebook-share:[17.0.0,18)' // Assets/FacebookSDK/Plugins/Editor/Dependencies.xml:8 implementation 'com.google.android.gms:play-services-ads:23.4.0' // Assets/TradplusSDK/Networks/Android/n2/Editor/Dependencies.xml:10 implementation 'com.google.android.gms:play-services-ads-identifier:17.0.0' // Assets/TradplusSDK/Networks/Android/n19/Editor/Dependencies.xml:12 implementation 'com.google.android.gms:play-services-base:18.7.2' // Assets/Firebase/Editor/AppDependencies.xml:17 implementation 'com.google.code.gson:gson:2.8.6' // Assets/TradplusSDK/Networks/Android/n40/Editor/Dependencies.xml:10 implementation 'com.google.firebase:firebase-analytics:23.0.0' // Assets/Firebase/Editor/CrashlyticsDependencies.xml:15 implementation 'com.google.firebase:firebase-app-unity:13.0.0' // Assets/Firebase/Editor/AppDependencies.xml:22 implementation 'com.google.firebase:firebase-common:22.0.0' // Assets/Firebase/Editor/AppDependencies.xml:13 implementation 'com.google.firebase:firebase-crashlytics-ndk:20.0.0' // Assets/Firebase/Editor/CrashlyticsDependencies.xml:13 implementation 'com.google.firebase:firebase-crashlytics-unity:13.0.0' // Assets/Firebase/Editor/CrashlyticsDependencies.xml:20 implementation 'com.pangle.global:ads-sdk:6.2.0.7' // Assets/TradplusSDK/Networks/Android/n19/Editor/Dependencies.xml:14 implementation 'com.parse.bolts:bolts-android:1.4.0' // Assets/FacebookSDK/Plugins/Editor/Dependencies.xml:4 implementation 'com.tradplusad:tp_exchange:40.12.1.10.1' // Assets/TradplusSDK/Networks/Android/n40/Editor/Dependencies.xml:12 implementation 'com.tradplusad:tradplus:12.7.10.1' // Assets/TradplusSDK/TradplusManager/Editor/TPEditorGradleDependencies.xml:3 implementation 'com.tradplusad:tradplus-applovin:9.12.7.10.1' // Assets/TradplusSDK/Networks/Android/n9/Editor/Dependencies.xml:12 implementation 'com.tradplusad:tradplus-googlex:2.12.7.10.1' // Assets/TradplusSDK/Networks/Android/n2/Editor/Dependencies.xml:12 implementation 'com.tradplusad:tradplus-pangle:19.12.7.10.1' // Assets/TradplusSDK/Networks/Android/n19/Editor/Dependencies.xml:10 implementation 'com.tradplusad:tradplus-unity:5.12.7.10.1' // Assets/TradplusSDK/Networks/Android/n5/Editor/Dependencies.xml:10 implementation 'com.unity3d.ads:unity-ads:4.12.3' // Assets/TradplusSDK/Networks/Android/n5/Editor/Dependencies.xml:12 implementation 'com.unity3d.mediation:mediation-sdk:[1.0,2.0[' // Assets/Editor/MediationAdapterDependencies.xml:8 implementation 'com.unity3d.mediation:unityads-adapter:[1.0,2.0[' // Assets/Editor/MediationAdapterDependencies.xml:10 // Android Resolver Dependencies End **DEPS**} // Android Resolver Exclusions Start android { ndkPath "**NDKPATH**" packagingOptions { exclude ('/lib/armeabi/*' + '*') exclude ('/lib/mips/*' + '*') exclude ('/lib/mips64/*' + '*') exclude ('/lib/x86/*' + '*') exclude ('/lib/x86_64/*' + '*') } } // Android Resolver Exclusions End android { namespace "**NAMESPACE**" compileSdkVersion **APIVERSION** buildToolsVersion '**BUILDTOOLS**' compileOptions { sourceCompatibility JavaVersion.VERSION_11 targetCompatibility JavaVersion.VERSION_11 } defaultConfig { minSdkVersion **MINSDKVERSION** targetSdkVersion **TARGETSDKVERSION** ndk { abiFilters **ABIFILTERS** } versionCode **VERSIONCODE** versionName '**VERSIONNAME**' consumerProguardFiles 'proguard-unity.txt'**USER_PROGUARD** } lintOptions { abortOnError false } aaptOptions { noCompress = ['.unity3d', '.ress', '.resource', '.obb', '.bundle', '.unityexp'] + unityStreamingAssets.tokenize(', ') ignoreAssetsPattern = "!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~" }**PACKAGING_OPTIONS** }**REPOSITORIES****SOURCE_BUILD_SETUP** **EXTERNAL_SOURCES**
08-23
PS D:\ASSimpleDemo> ./gradlew build --warning-mode all Configuration on demand is an incubating feature. > Configure project : The RepositoryHandler.jcenter() method has been deprecated. This is scheduled to be removed in Gradle 8.0. JFrog announced JCenter's shutdown in February 2021. Use mavenCentral() instead. Consult the upgrading guide for further information: https://docs.gradle.org/7.0.2/userguide/upgrading_version_6.html#jcenter_deprecation at build_ce3ruzx0et0a87btopefgvs46$_run_closure1$_closure2.doCall(D:\ASSimpleDemo\build.gradle:11) (Run with --stacktrace to get the full stack trace of this deprecation warning.) > Configure project :app WARNING:Using flatDir should be avoided because it doesn't support any meta-data formats. Warning: This version only understands SDK XML versions up to 2 but an SDK XML file of version 3 was encountered. This can happen if you use versions of Android Studio and the command-line tools that were released at different times. Warning: 意外的元素 (uri:"", local:"extension-level")。所需元素为<{}codename>,<{}layoutlib>,<{}api-level> Warning: 意外的元素 (uri:"", local:"base-extension")。所需元素为<{}codename>,<{}layoutlib>,<{}api-level> WARNING:We recommend using a newer Android Gradle plugin to use compileSdk = 34 This Android Gradle plugin (7.0.2) was tested up to compileSdk = 31 This warning can be suppressed by adding android.suppressUnsupportedCompileSdk=34 to this project's gradle.properties The build will continue, but you are strongly encouraged to update your project to use a newer Android Gradle Plugin that has been tested with compileSdk = 34 > Task :app:processReleaseMainManifest D:\ASSimpleDemo\app\src\main\AndroidManifest.xml:21:5-79 Warning: Element uses-permission#android.permission.ACCESS_FINE_LOCATION at AndroidManifest.xml:21:5-79 duplicated with element declared at AndroidManifest.xml:12:5-79 D:\ASSimpleDemo\app\src\main\AndroidManifest.xml:22:5-65 Warning: Element uses-permission#android.permission.CAMERA at AndroidManifest.xml:22:5-65 duplicated with element declared at AndroidManifest.xml:16:5-64 D:\ASSimpleDemo\app\src\main\AndroidManifest.xml:23:5-80 Warning: Element uses-permission#android.permission.READ_EXTERNAL_STORAGE at AndroidManifest.xml:23:5-80 duplicated with element declared at AndroidManifest.xml:18:5-80 D:\ASSimpleDemo\app\src\main\AndroidManifest.xml:24:5-81 Warning: Element uses-permission#android.permission.WRITE_EXTERNAL_STORAGE at AndroidManifest.xml:24:5-81 duplicated with element declared at AndroidManifest.xml:5:5-81 > Task :app:processDebugResources FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:processDebugResources'. > A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction > AAPT2 aapt2-7.0.2-7396180-windows Daemon #0: Unexpected error during link, attempting to stop daemon. This should not happen under normal circumstances, please file an issue if it does. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 8s 36 actionable tasks: 12 executed, 24 up-to-date
06-24
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值