我正在尝试将我的Android项目在Android Studio中的Gradle插件从版本1.2.3升级到1.5.0(以便能够使用Vector Asset Studio)。问题是在将 classpath'com.android.tools.build:grad:1.2.3'更改为 classpath'com.android.tools.build:gradle:1.5.0'< /强>
我收到的错误就像PNG不正确,已损坏。只需[ProjectName:mergeDebugResources]。更改损坏的PNG无效......
有什么想法吗?谢谢!
编辑1
我得到的错误:
Public Function establishConnection()
Dim MysqlConn As MySqlConnection = New MySqlConnection()
Dim server_name = My.Settings.server_name
Dim username = My.Settings.username
Dim password = My.Settings.password
Dim database = My.Settings.database
MysqlConn.ConnectionString = "server=" & server_name & ";" _
& "user id=" & username & ";" _
& "password=" & password & ";" _
& "database=" & database & ";"
Return MysqlConn
End Function
编辑2
添加以下行编译,但从16MB的APK增长到45MB
:app:mergeDebugResources
AAPT: libpng error: PNG file corrupted by ASCII conversion
AAPT: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
AAPT: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
AAPT: libpng error: Not a PNG file
AAPT: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
AAPT: libpng error: IDAT: CRC error
AAPT: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
AAPT: libpng error: PNG file corrupted by ASCII conversion
AAPT: libpng error: Not a PNG file
AAPT: libpng error: IDAT: CRC error
AAPT: libpng error: bad adaptive filter value
AAPT: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
AAPT: libpng error: Not a PNG file
AAPT: libpng error: Not a PNG file
:app:mergeDebugResources FAILED
Error:Execution failed for task ':app:mergeDebugResources'.
> Some file crunching failed, see logs for details