小编Elh*_*ani的帖子

错误:任务':app:mergeDebugResources'的执行失败.>某些文件崩溃失败,请参阅日志了解详细信息构建gradle问题

目前我正在使用Android Studio 2.1,当我运行我的应用程序时,它向我显示Message Gradle Build中的一些错误,说明如下

 Information:Gradle tasks [:app:clean, :app:generateDebugSources, :app:prepareDebugUnitTestDependencies, :app:mockableAndroidJar, :app:generateDebugAndroidTestSources, :app:assembleDebug]
:app:clean
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE
:app:prepareComAndroidSupportAppcompatV72221Library
:app:prepareComAndroidSupportDesign2221Library
:app:prepareComAndroidSupportSupportV42221Library
:app:prepareDebugDependencies
:app:compileDebugAidl
:app:compileDebugRenderscript
:app:generateDebugBuildConfig
:app:mergeDebugShaders
:app:compileDebugShaders
:app:generateDebugAssets
:app:mergeDebugAssets
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources
:app:mergeDebugResources
AAPT err(Facade for 114461397): libpng error: Read Error
*Error:Execution failed for task ':app:mergeDebugResources'.
> Some file crunching failed, see logs for details*
Information:BUILD FAILED
Information:Total time: 24.87 secs
Information:1 error
Information:0 warnings
Information:See complete output in console
Run Code Online (Sandbox Code Playgroud)

我试过清理和重建它,但它没有用.这个问题的答案也不起作用.任何帮助将不胜感激,谢谢.

更新: 这是日志输出

* Exception …
Run Code Online (Sandbox Code Playgroud)

java android build.gradle android-gradle-plugin

14
推荐指数
2
解决办法
6万
查看次数

如果我们使用自动递增的标识列和PK,则违反3NF

正如Thomas Connolly和Carolyn Begg在180页写的"数据库解决方案第二版"一书所述:

第三范式(3NF)
已经在1NF和2NF中的表,其中所有非主键列中的值只能从主键列而不是其他列中计算出来.

我已经看到很多人们使用标识列的情况,尽管他们的表中已经有了主键列.记录也可以从标识列中得出,如果我们在表中使用自动递增的标识列和主键,是不是违反了3NF?

更新:如果不是这样,哪个列应作为另一个表中的外键引用.主键列或标识列?

database-design entity-relationship third-normal-form database-normalization

2
推荐指数
2
解决办法
249
查看次数