Build error referencing build.xml and proguard file: “null returned: 1”

后端 未结 7 786
梦如初夏
梦如初夏 2021-01-02 08:34

While building my PhoneGap app (with the Facebook SDK plugin installed), I encountered this error:

BUILD FAILED C:\\adt-bundle-windows-x86_64-201305

相关标签:
7条回答
  • 2021-01-02 09:21

    For me, conflicting build targets were at fault. Needed to change project.properties in my library directory (which was appcompat) to 'target=android-21', instead of android-19 which I had before. If you encounter a similar error and the previous answer (ant clean) does not work, check all the build targets.

    0 讨论(0)
  • 2021-01-02 09:30

    Close Eclipse and then run ant clean in your project folder.

    0 讨论(0)
  • 2021-01-02 09:32

    Verify your JAVA_HOME variable is correctly set to some path like C:\Program Files\Java\jdk1.7.0_67\ and if the error still goes on, it may be solved going to the build.xml and setting true to the variable fork, or the passed variable ${need.javac.fork}, which sets fork´s value in:

    fork="${need.javac.fork}"

    0 讨论(0)
  • 2021-01-02 09:33

    You may also want to make sure your local.properties has the path to your sdk: sdk.dir=/path/to/adt/sdk

    0 讨论(0)
  • 2021-01-02 09:33

    I had the same issue, I solved it this way:

    Go to the framework directory in the project, and type these commands to build the jar file (you will need to have ant installed to generate the jar file, but it should be on your system already):

    android update project -p . -t android-23
    
    ant jar
    

    So just make sure what type of android you have because you may have tried android-19.

    0 讨论(0)
  • 2021-01-02 09:34

    For me: I had

    edited my config.xml wrongly

    . Try undoing your edits or placing a generic config.xml then see if she builds.

    0 讨论(0)
提交回复
热议问题