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

Fails to build from source #26

Closed
mhaas opened this issue May 5, 2012 · 2 comments
Closed

Fails to build from source #26

mhaas opened this issue May 5, 2012 · 2 comments

Comments

@mhaas
Copy link

mhaas commented May 5, 2012

-compile:
[javac] /opt/android-sdk-linux_x86-r13/tools/ant/build.xml:600: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 10 source files to /home/laga/dev/fdroid/fdroidserver/build/org.totschnig.myexpenses/bin/classes
[javac] /home/laga/dev/fdroid/fdroidserver/build/org.totschnig.myexpenses/src/org/totschnig/myexpenses/MyExpenses.java:905: cannot find symbol
[javac] symbol : variable app
[javac] location: class org.totschnig.myexpenses.R.raw
[javac] InputStream rawResource = getResources().openRawResource(R.raw.app);
[javac] ^
[javac] Note: /home/laga/dev/fdroid/fdroidserver/build/org.totschnig.myexpenses/src/org/totschnig/myexpenses/GrisbiImport.java uses unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 1 error

This is with r13 of the SDK and target=android-7.

Regards,

Michael

@mtotschnig
Copy link
Owner

Building MyExpenses requires a slighly patched build.xml:

<import file="${sdk.dir}/tools/ant/build_with_config.xml" />
    <!-- build_with_config is the original build.xml from ADK with config added to the compile task
    <target name="-compile" depends="-config, -build-setup, -pre-build, -code-gen, -pre-compile">
     -->

This allows to generate a resource file from a template, with a time stamp of the build.

@mtotschnig
Copy link
Owner

I have found an alternative way of configuring the build without need of patching Androids' build.xml. ea8796e Now you should be able to build MyExpenses

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

2 participants