我正在尝试将android eclipse 项目包含库导入 Android Studio 。
导入所有库文件后,请参阅build.gradle
compile files('libs/comscore.jar')
compile files('libs/FlurryAnalytics-5.3.0.jar')
compile files('libs/json-simple.jar')
但显示 Gradle Build Error
Error:Execution failed for task ':mMHealth:mergeDebugResources'.
> Some file crunching failed, see logs for details
还显示错误
AAPT err(Facade for 2088335535): ERROR: 9-patch image C:\Project\me\src\Health\src\main\res\drawable-xhdpi\ic_mail.9.png malformed.
AAPT err(Facade for 2034746927): ERROR: 9-patch image C:\Project\me\src\Health\src\main\res\drawable\baby_spinner.9.png malformed.
AAPT err(Facade for 2088335535): No marked region found along edge.
AAPT err(Facade for 2034746927): Must have one-pixel frame that is either transparent or white.
AAPT err(Facade for 2088335535): Found along top edge.
My Grdle
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.0'
}
}
任何人都可以帮忙解决gradle.build错误
提前致谢:)
答案 0 :(得分:1)
当你的eclipse项目中有png(s)图像时会出现这种错误, 尝试删除这些png文件并使用照片编辑器工具重新创建它
9-patch image C:\Project\me\src\Health\src\main\res\drawable-xhdpi\ic_mail.9.png malformed.
9-patch image C:\Project\me\src\Health\src\main\res\drawable\baby_spinner.9.png malformed.