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

Can't build apk on OS X El Capitan #922

Closed
dpatz opened this issue Nov 9, 2016 · 3 comments
Closed

Can't build apk on OS X El Capitan #922

dpatz opened this issue Nov 9, 2016 · 3 comments

Comments

@dpatz
Copy link

dpatz commented Nov 9, 2016

Hi guys, I'm trying to build the test flask app and I'm having some trouble.

Here is the command I'm running: p4a apk --requirements=kivy --private ../python-for-android/testapps/testapp_flask --package=com.eastridge.tablet --name="tablet" --version=0.5 --bootstrap=webview --arch=armeabi-v7a --requirements=flask

And this is the error I'm getting:

[INFO]:    Dist can be found at (for now) /Users/dpatz/.python-for-android/dists/unnamed_dist_1
[INFO]:    Of the existing distributions, the following meet the given requirements:
[INFO]:        	unnamed_dist_1: includes recipes (hostpython2, python2, genericndkbuild, setuptools, flask, jinja2, werkzeug, markupsafe, itsdangerous, click), built for archs (armeabi-v7a)
[INFO]:    unnamed_dist_1 has compatible recipes, using this one
[INFO]:    -> directory context /Users/dpatz/.python-for-android/dists/unnamed_dist_1
[INFO]:    -> running ant debug
[INFO]:    STDOUT (last 20 lines of 82):
       	-compile:
    [javac] Compiling 22 source files to /Users/dpatz/.python-for-android/dists/unnamed_dist_1/bin/classes
    [javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
    [javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
    [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
    [javac] /Users/dpatz/.python-for-android/dists/unnamed_dist_1/tmp-src/org/kivy/android/PythonService.java:96: error: cannot find symbol
    [javac]         notification.setLatestEventInfo(context, serviceTitle, serviceDescription, pIntent);
    [javac]                     ^
    [javac]   symbol:   method setLatestEventInfo(Context,String,String,PendingIntent)
    [javac]   location: variable notification of type Notification
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] 1 error
    [javac] 3 warnings

BUILD FAILED
/Users/dpatz/Library/Android/sdk/tools/ant/build.xml:716: The following error occurred while executing this line:
/Users/dpatz/Library/Android/sdk/tools/ant/build.xml:730: Compile failed; see the compiler error output for details.

Total time: 2 seconds
[INFO]:    STDERR:

[INFO]:    COMMAND:
cd /Users/dpatz/.python-for-android/dists/unnamed_dist_1 && /usr/local/bin/ant debug

[WARNING]: ERROR: /usr/local/bin/ant failed!

Any ideas?

Thanks!

@inclement
Copy link
Member

This is a known problem, but I haven't had time to check through the possible solutions yet. You can try the PR at #873, or possibly just target an older api.

@dpatz
Copy link
Author

dpatz commented Nov 9, 2016

Awesome, will do. Thanks for the quick response!

@dpatz
Copy link
Author

dpatz commented Nov 10, 2016

That did it thanks!

@dpatz dpatz closed this as completed Nov 10, 2016
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