2014-11-03 89 views
0

我需要使用angularjs构建phonegap应用程序。所以我选择离子框架。这些是我迄今为止所做的步骤。使用离子构建phonegap应用程序时出现构建错误

1.设置了java的,蚂蚁,ADT和它们的路径。使用命令使用

ionic ionic start ex1 

4.added离子平台

ionic platform add android 

5.builded使用命令

ionic build android 

npm install -g ionic 

3.started离子项目 2.installed离子

但是在建设中,它显示错误。

BUILD FAILED 
C:\Android\adt-bundle\sdk\tools\ant\build.xml:932: The following error occurred 
while executing this line: 
C:\Android\adt-bundle\sdk\tools\ant\build.xml:950: null returned: -1073741819 

Total time: 11 seconds 

C:\Android\fresh\platforms\android\cordova\node_modules\q\q.js:126 
        throw e; 
         ^
Error code 1 for command: cmd with args: /s,/c,ant,debug,-f,C:\Android\fresh\pla 
tforms\android\build.xml,-Dout.dir=ant-build,-Dgen.absolute.dir=ant-gen 

我还没有修改任何代码。和Apache的蚂蚁和Java也在工作。为什么这个错误?

在C的含量:\的Android \ ADT-束\ SDK \工具\蚂蚁\的build.xml如下

line 930 <target name="-package-resources" depends="-crunch"> 
       <!-- only package resources if *not* a library project --> 
line 932 <do-only-if-not-library elseText="Library project: do not package resources..." > 
       <aapt executable="${aapt}" 
        command="package" 
        versioncode="${version.code}" 
        versionname="${version.name}" 
        debug="${build.is.packaging.debug}" 
        manifest="${out.manifest.abs.file}" 
        assets="${asset.absolute.dir}" 
        androidjar="${project.target.android.jar}" 
        apkfolder="${out.absolute.dir}" 
        nocrunch="${build.packaging.nocrunch}" 
        resourcefilename="${resource.package.file.name}" 
        resourcefilter="${aapt.resource.filter}" 
        libraryResFolderPathRefid="project.library.res.folder.path" 
        libraryPackagesRefid="project.library.packages" 
        libraryRFileRefid="project.library.bin.r.file.path" 
        previousBuildType="${build.last.target}" 
        buildType="${build.target}" 
line 950   ignoreAssets="${aapt.ignore.assets}"> 
       <res path="${out.res.absolute.dir}" /> 
       <res path="${resource.absolute.dir}" /> 
       <!-- <nocompress /> forces no compression on any files in assets or res/raw --> 
       <!-- <nocompress extension="xml" /> forces no compression on specific file extensions in assets and res/raw --> 
      </aapt> 
     </do-only-if-not-library> 
    </target> 

回答

相关问题