buildozer ant error: Unknown symbol notification.setLatestEventInfo

56 views
Skip to first unread message

Charles Plager

unread,
Apr 21, 2018, 1:34:08 PM4/21/18
to Kivy users support
Hi,

With a fresh install, I'm getting the following build error:

    [javac] /home/cplager/build/.buildozer/android/platform/build/dists/mathtest/tmp-src/org/kivy/android/PythonService.java:97: 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

attached are spec file, history of how I setup everything, full output (buildozer.txt) and just the output running the ant command (ant.txt)

Thanks,
  Charles

p.s. I'm using android.api=19 because that seems to be the highest for which I have ndk version for.


Charles Plager

unread,
Apr 21, 2018, 1:40:38 PM4/21/18
to Kivy users support
ant error:

Buildfile: /home/cplager/build/.buildozer/android/platform/build/dists/mathtest/build.xml

-set-mode-check:

-set-debug-files:

-check-env:
 [checkenv] Android SDK Tools Revision 25.2.5
 [checkenv] Installed at /home/cplager/.buildozer/android/platform/android-sdk-25.2.5

-setup:
     [echo] Project Name: MultiplicationTester-0.1
  [gettype] Project Type: Application

-set-debug-mode:

-debug-obfuscation-check:

-pre-build:

-build-setup:
[getbuildtools] Using latest Build Tools: 24.0.3
     [echo] Resolving Build Target for MultiplicationTester-0.1...
[gettarget] Project Target:   Android 7.0
[gettarget] API level:        24
     [echo] ----------
     [echo] Creating output directories if needed...
    [mkdir] Created dir: /home/cplager/build/.buildozer/android/platform/build/dists/mathtest/bin/rsObj
    [mkdir] Created dir: /home/cplager/build/.buildozer/android/platform/build/dists/mathtest/bin/rsLibs
     [echo] ----------
     [echo] Resolving Dependencies for MultiplicationTester-0.1...
[dependency] Library dependencies:
[dependency] No Libraries
[dependency] 
[dependency] ------------------
     [echo] ----------
     [echo] Building Libraries with 'debug'...
   [subant] No sub-builds to iterate on

-code-gen:
[mergemanifest] No changes in the AndroidManifest files.
     [echo] Handling aidl files...
     [aidl] No AIDL files to compile.
     [echo] ----------
     [echo] Handling RenderScript files...
     [echo] ----------
     [echo] Handling Resources...
     [aapt] No changed resources. R.java and Manifest.java untouched.
     [echo] ----------
     [echo] Handling BuildConfig class...
[buildconfig] Generating BuildConfig class.

-pre-compile:

-compile:
    [javac] Compiling 14 source files to /home/cplager/build/.buildozer/android/platform/build/dists/mathtest/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] /home/cplager/build/.buildozer/android/platform/build/dists/mathtest/tmp-src/org/kivy/android/PythonService.java:97: 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
/home/cplager/.buildozer/android/platform/android-sdk-25.2.5/tools/ant/build.xml:716: The following error occurred while executing this line:
/home/cplager/.buildozer/android/platform/android-sdk-25.2.5/tools/ant/build.xml:730: Compile failed; see the compiler error output for details.

Total time: 2 seconds

Reply all
Reply to author
Forward
0 new messages