1

I am trying to bring my pygame-project to Android, but i am encountering lots of Problems.

I follwed the guide described at https://github.com/renpytom/rapt-pygame-example so far but when I try to do the last step C:\Python27\rapt>python android.py --launch build C:\Python27\Game1 release

it gives me the error

`FAILURE: Build failed with an exception.

  • What went wrong: Task 'release' not found in root project 'project'.`

I am really unexperienced in programming and just want my game to run on a phone.

I dont know if its relevant for my Question but when it did

python android.py installsdk

the error message

``C:\Python27\rapt>python android.py configure C:\Python27\Game1 Traceback (most recent call last):

File "buildlib\rapt\plat.py", line 105, in set_win32_java_home()

File "buildlib\rapt\plat.py", line 78, in set_win32_java_home keys = scanreg(key, bitflag)

File "buildlib\rapt\plat.py", line 48, in scanreg startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW

AttributeError: 'module' object has no attribute 'STARTF_USESHOWWINDOW'``

appeared but as it still said 'It looks like you're ready to start packaging games.' i ignored this issue.

I am using Windows 10, Python 2.7 ,jdk1.8.0_202 and set _JAVA_OPTIONS: -Xmx1024M and a gradle Path-variable to get the gradle 5.1.1 daemon running. While i tried the build command I also had the Android Emulator running on Android 2.2.

I already spend 3 nights to get this running. Help would really be appreciated, because i dont understand whats going on in the Background of all this.

0 Answers0