Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

想下载你这个看下,但是用AS打开之后,总是报AAPT的错误,实在不明白是哪几张图片出问题了,能否麻烦你看下?Gradle Version 2.10 Plugin Version 2.1.0 #6

Open
shuimuqinghua opened this issue Jun 1, 2016 · 9 comments

Comments

@shuimuqinghua
Copy link

No description provided.

@jiangqqlmj
Copy link
Owner

应该是AS的版本高了,然后对于图片格式检测更加严格了,你可以替换一下那几张检测出来的图片

@shuimuqinghua
Copy link
Author

谢谢回复~ 我想说的是,我找不到那几张图片~~
image

@yhqvod
Copy link

yhqvod commented Jun 2, 2016

江清清,你好:

    不知道你的问题有没有解决,我刚刚尝试着去改了一下,编译不过好像是因为你的项目中某些图不是真正的png,而是其他格式重命名过来的,我找了一个解决办法,如图



    添加以上代码就没问题了,但是你的项目中还存在多个JsonSerializer
    Error:Error converting bytecode to dex:
    Cause: com.android.dex.DexException: Multiple dex files define Lcom/google/gson/JsonSerializer;

    后面我去掉了gson-2.2.4.jar,可以直接编译通过

[email protected]

发件人: 江清清
发送时间: 2016-06-01 16:28
收件人: jiangqqlmj/FastDev4Android
主题: Re: [jiangqqlmj/FastDev4Android] 想下载你这个看下,但是用AS打开之后,总是报AAPT的错误,实在不明白是哪几张图片出问题了,能否麻烦你看下?Gradle Version 2.10 Plugin Version 2.1.0 (#6)
应该是AS的版本高了,然后对于图片格式检测更加严格了,你可以替换一下那几张检测出来的图片

You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@shuimuqinghua
Copy link
Author

你用的什么方法解决图片问题的? 你说的如图,但是我看不到图,能否麻烦你再弄给我看下,谢谢!

@yhqvod
Copy link

yhqvod commented Jun 2, 2016

江清清,你好:

    不好意思回错了 

[email protected]

发件人: 江清清
发送时间: 2016-06-01 16:28
收件人: jiangqqlmj/FastDev4Android
主题: Re: [jiangqqlmj/FastDev4Android] 想下载你这个看下,但是用AS打开之后,总是报AAPT的错误,实在不明白是哪几张图片出问题了,能否麻烦你看下?Gradle Version 2.10 Plugin Version 2.1.0 (#6)

应该是AS的版本高了,然后对于图片格式检测更加严格了,你可以替换一下那几张检测出来的图片


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@yhqvod
Copy link

yhqvod commented Jun 2, 2016

在app中build.gradle文件android 节点中添加

aaptOptions{
cruncherEnabled = false
}

在 2016-06-02 09:31:09,"shuimuqinghua" [email protected] 写道:

你用的什么方法解决图片问题的? 你说的如图,但是我看不到图,能否麻烦你再弄给我看下,谢谢!


You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

@huatx
Copy link

huatx commented Dec 7, 2016

Error:java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException:

@jp1017
Copy link

jp1017 commented Dec 9, 2016

Error:java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException:

这个可以删除build文件夹解决。

@mandysss
Copy link

FastDev4Android\app\src\main\res\mipmap-hdpi下面的几张图片不是png的,改成jpg就OK了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants