使用Buildozer建造时出错



我对Kivy和Android应用程序开发相当陌生。我用Kivy做了一个基本的hello world应用程序,并试图用Buildozer制作一个APK。以下是我看到的错误:

-compile:
[javac] Compiling 11 source files to /home/ratul/Devel/Python/Kivy/test/.buildozer/android/platform/python-for-android/dist/ratulsapp/bin/classes
[javac] /home/ratul/Devel/Python/Kivy/test/.buildozer/android/platform/python-for-android/dist/ratulsapp/src/org/renpy/android/PythonService.java:64: 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
BUILD FAILED
/home/ratul/Devel/Android/Sdk/tools/ant/build.xml:716: The following error occurred while executing this line:
/home/ratul/Devel/Android/Sdk/tools/ant/build.xml:730: Compile failed; see the compiler error output for details.
我不明白问题是从哪里来的。我尝试从main.py指定版本,但这也没有帮助。指针吗?

Notification.setLatestEventInfo在API Level 23 (Android 6.0)中被删除:https://developer.android.com/sdk/api_diff/23/changes/android.app.Notification.html

如何实现Notification
的弃用方法

相关内容

  • 没有找到相关文章