How to create a release app? Or Is it possible to change domain name in Bouildozer.spec?

328 views
Skip to first unread message

mehdi alizade

unread,
Sep 1, 2021, 3:30:34 AM9/1/21
to kivy-...@googlegroups.com
For create a release app, I used This: (https://github.com/kivy/kivy/wiki/Creating-a-Release-APK).
I have an Error:
# ERROR: Trying to release a package that starts with org.kivy
#
# The package.domain org.kivy is reserved for the Kivy official
# applications. Please use your own domain.
#
# If you are a Kivy developer, add an export in your shell
# export BUILDOZER_ALLOW_KIVY_ORG_DOMAIN=1
My problem is with choosing a domain name. This is my Buildozer.spec:
# (str) Package name
package.name = oscservice

# (str) Package domain (needed for android/ios packaging)
package.domain = org.kivy
I used this(https://github.com/tshirtman/kivy_service_osc) to use the service. So I did not change the *.spec file. When I changed package.name = oscservice to package.name = BatteryProtector and package.domain = org.kivy to package.domain = org.ipfelec in buildozer.spec, app don't run. I also changed the following code, the app will not run.
 SERVICE_NAME = u'{packagename}.Service{servicename}'.format(
     packagename=u'org.ipfelec.BatteryProtect',
     servicename=u'Pong'
 )

This is my Error:

09-01 02:07:54.443  2162  2200 I python  :  Traceback (most recent call last):
09-01 02:07:54.443  2162  2200 I python  :    File "/media/mehdi/2436ef15-26cf-4be8-9eed-6befb73eddd8/mehdi/Documents/BuildozerTest/.buildozer/android/app/main.py", line 398, in <module>
09-01 02:07:54.443  2162  2200 I python  :    File "/media/mehdi/2436ef15-26cf-4be8-9eed-6befb73eddd8/mehdi/Documents/BuildozerTest/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/BatteryProtector/kivy/app.py", line 949, in run
09-01 02:07:54.444  2162  2200 I python  :    File "/media/mehdi/2436ef15-26cf-4be8-9eed-6befb73eddd8/mehdi/Documents/BuildozerTest/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/BatteryProtector/kivy/app.py", line 919, in _run_prepare
09-01 02:07:54.444  2162  2200 I python  :    File "/media/mehdi/2436ef15-26cf-4be8-9eed-6befb73eddd8/mehdi/Documents/BuildozerTest/.buildozer/android/app/main.py", line 317, in build
09-01 02:07:54.444  2162  2200 I python  :    File "/media/mehdi/2436ef15-26cf-4be8-9eed-6befb73eddd8/mehdi/Documents/BuildozerTest/.buildozer/android/app/main.py", line 334, in start_service
09-01 02:07:54.445  2162  2200 I python  :    File "/media/mehdi/2436ef15-26cf-4be8-9eed-6befb73eddd8/mehdi/Documents/BuildozerTest/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/BatteryProtector/jnius/reflect.py", line 208, in autoclass
09-01 02:07:54.445  2162  2200 I python  :    File "jnius/jnius_export_func.pxi", line 28, in jnius.jnius.find_javaclass
09-01 02:07:54.446  2162  2200 I python  :  jnius.jnius.JavaException: Class not found b'org/ipfelec/BatteryProtector/ServicePong'
09-01 02:07:54.446  2162  2200 I python  : Python for android ended.

Is it possible for me to change these names?

Robert

unread,
Sep 1, 2021, 1:11:17 PM9/1/21
to Kivy users support

mehdi alizade

unread,
Sep 3, 2021, 7:50:35 AM9/3/21
to kivy-...@googlegroups.com
My problem was solved.
For the release mode, When the "buildozer.spec" was as follows.
 

# (str) Package name
package.name = oscservice
# (str) Package domain (needed for android/ios packaging)
package.domain = org.kivy
before the ‍`buildozer -v android release` command,  just need to type in Terminal `export BUILDOZER_ALLOW_KIVY_ORG_DOMAIN=1`.

--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/caeeedc3-aa78-435a-a634-3d05e48d8e06n%40googlegroups.com.

Robert

unread,
Sep 3, 2021, 2:54:26 PM9/3/21
to Kivy users support
org.kivy is not your domain, using it is squatting, please do not do that again.

mehdi alizade

unread,
Sep 5, 2021, 8:38:34 AM9/5/21
to kivy-...@googlegroups.com
I thought that was the right way. I researched, but did not find the answer. What is the right solution for this?

Robert

unread,
Sep 5, 2021, 1:01:40 PM9/5/21
to Kivy users support
What do you mean by 'this' ?

mehdi alizade

unread,
Sep 6, 2021, 3:54:30 AM9/6/21
to kivy-...@googlegroups.com

The main question. The first question of this topic.

Robert

unread,
Sep 6, 2021, 12:53:21 PM9/6/21
to Kivy users support
And what is it you don't understand?

mehdi alizade

unread,
Sep 11, 2021, 2:16:51 PM9/11/21
to kivy-...@googlegroups.com
Sorry, I saw your message too late.
I do not receive any errors when I use it.

# (str) Package name
package.name = oscservice
# (str) Package domain (needed for android/ios packaging)
package.domain = org.kivy

I have an error: jnius.jnius.JavaException: Class not found b'org/ipfelec/BatteryProtector/ServicePong' When I changed package.name = oscservice to package.name = BatteryProtector and package.domain = org.kivy to package.domain = org.ipfelec in buildozer.spec and SERVICE_NAME = u'{packagename}.Service{servicename}'.format( packagename=u'org.ipfelec.BatteryProtect', servicename=u'Pong' )  in main.py.




Reply all
Reply to author
Forward
0 new messages