我最近玩过Vitamio然后我导入了一个不同的项目,但是,在尝试构建它时,生成了以下输出:
Information:Gradle tasks [:app:generateDebugSources]
:app:preBuild
:app:preDebugBuild
:app:checkDebugManifest
:app:prepareDebugDependencies
:app:compileDebugAidl UP-TO-DATE
:app:compileDebugRenderscript UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:generateDebugAssets UP-TO-DATE
:app:mergeDebugAssets UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources
libpng error: Not a PNG file
libpng error: Not a PNG file
Error:Failed to run command:
C:\Program Files (x86)\Android\android-studio\sdk\build-tools\android-4.4W\aapt.exe s -i W:\VitamioBundle-master\playstream-master\app\src\main\res\drawable-xhdpi\tt.png -o W:\VitamioBundle-master\playstream-master\app\build\intermediates\res\debug\drawable-xhdpi-v4\tt.png
Error Code:
42
Output:
libpng error: Not a PNG file
:app:mergeDebugResources FAILED
Error:Execution failed for task ':app:mergeDebugResources'.
> Error: Failed to run command:
C:\Program Files (x86)\Android\android-studio\sdk\build-tools\android-4.4W\aapt.exe s -i W:\VitamioBundle-master\playstream-master\app\src\main\res\drawable-xhdpi\tt.png -o W:\VitamioBundle-master\playstream-master\app\build\intermediates\res\debug\drawable-xhdpi-v4\tt.png
Error Code:
42
Output:
libpng error: Not a PNG file
Information:BUILD FAILED
Information:Total time: 2.26 secs
libpng error: Not a PNG file
Information:2 errors
Information:0 warnings
Information:See complete output in console
我不清楚为什么会发生这种情况,这个项目与Vitamio完全无关,它位于自己的文件夹中,所有这些都是唯一的共同点是根驱动器W:\在这种情况下。
问题是:为什么会这样?
注意:我对Android Studio不是很熟悉。