Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Issue with proguardFile, null returned: 1

Hi am trying to run "ant clean debug" command on cmd. But i am getting null returned: 1 error.

BUILD FAILED
C:\Program Files (x86)\Android\android-sdk\tools\ant\build.xml:622: The following error    occurred while executing this line:
 C:\Program Files (x86)\Android\android-sdk\tools\ant\build.xml:658: null returned: 1



 <aapt executable="${aapt}"
                 command="package"
                 verbose="${verbose}"
                 manifest="${out.manifest.abs.file}"
                 androidjar="${project.target.android.jar}"
                 rfolder="${gen.absolute.dir}"
                 nonConstantId="${android.library}"
                 libraryResFolderPathRefid="project.library.res.folder.path"
                 libraryPackagesRefid="project.library.packages"
                 ignoreAssets="${aapt.ignore.assets}"
                 proguardFile="${out.absolute.dir}/proguard.txt">
             <res path="${out.res.absolute.dir}" />
             <res path="${resource.absolute.dir}" />
         </aapt>

the line no 658 :

 proguardFile="${out.absolute.dir}/proguard.txt">

the line no 622 :

 elseText="hasCode = false. Skipping aidl/renderscript/R.java">

Is their anybody their who know the solution for this issue.

like image 766
Anu0042 Avatar asked Nov 27 '12 10:11

Anu0042


1 Answers

In my case, there also was an error report earlier in the logs, it was just difficult to find. As I understand, any kind of error would lead to that message.

So the crazy message null returned: 1 actually means please read the above logs.

like image 71
18446744073709551615 Avatar answered Sep 20 '22 16:09

18446744073709551615