Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7873129
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T02:25:22+00:00 2026-06-03T02:25:22+00:00

I am attempting to build the Android port of Hedgewars on Windows, using make/ant

  • 0

I am attempting to build the Android port of Hedgewars on Windows, using make/ant on the console. After some trial and error I managed to complete the entire build process, but the built application will not start. logcat reveals the reason to be that the classes from the Android Support library are missing.

However, the library (android-support-v13.jar) is present in the “libs” directory of the android project, and it is clearly used during the build since removing it will cause errors when compiling the java sources. I checked the classes.dex file where the library classes should be added (as far as I understand), and they do not appear to be there.

So, what might be the reason that the support library is not included in the .apk? Other (native) libraries in libs/armeabi are being included. The build is performed using ant, with a build.xml that basically just sets up the variables sdk.dir and target (android-13), then imports ${sdk.dir}/tools/ant/build.xml.

To clarify, I know how to get a working build with eclipse. The question is why the normal ant build fails to add the library, and how that can be fixed.

Here is the build.xml in the project directory (without the comments):

<?xml version="1.0" encoding="UTF-8"?>
<project name="MainActivity" default="help">
    <loadproperties srcFile="local.properties" />
    <property file="ant.properties" />
    <loadproperties srcFile="project.properties" />
    <fail
            message="sdk.dir is missing. Make sure to generate local.properties using 'android update project'"
            unless="sdk.dir"
    />
    <import file="${sdk.dir}/tools/ant/build.xml" />
</project>

local.properties defines sdk.dir, project.properties defines target, ant.properties is empty.

Update: Oh of course, I updated everything to the latest versions (ndk8, sdk19), pulled from the Hedgewars repository for good measure, and now it works. No idea what exactly made the difference, unfortunately. I guess that means the best candidate for the bounty is NickT, but he didn’t make it a proper answer. Suggestions in the comments.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T02:25:24+00:00Added an answer on June 3, 2026 at 2:25 am

    It turns out that this was a bug in the Android SDK. The release notes of r18 say:

    Fixed Ant issues where some jar libraries in the libs/ folder are not
    picked up in some cases.

    Since updating from r17 to r19 fixed the problem for me, this was very likely the cause of the problem. Thanks to NickT whose comment pointed me in the right direction, even if it was just a clarification question.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am attempting to build my android project using ant (it runs fine in
I'm attempting to build some C++ code that requires the Windows 7.0 SDK header
I am attempting to create a standalone ant build file for android. We are
I'm attempting to write some tests using the built-in android Junit testing framework. I
Attempting to build .exe using py2exe: python setup.py py2exe , receiving error: ImportError: No
I'm attempting to build a library for x86 distributions of the android emulator using
I am attempting to build my first app using the tutorial provided by android
I'm attempting to build a JSF/Hibernate application using Java 7 and Tomcat 7. I
I'm attempting to build an app using the Sencha Touch 2 builder tools. I
I'm attempting to build Firefox on my Windows Vista Ultimate machine. I keep getting

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.