Monday, 1 April 2019

Problem in building pygame apk (project.properties file error)

I am creating a game for Android using pygame and pgs4a. When I run android.py build mygame release it throws this error :

Updating build files.  

Updated project.properties
Updated local.properties
Added file F:\pgs4a-master\build.xml
Updated file F:\pgs4a-master\proguard-project.txt

Creating assets directory.


Packaging internal data.

Listing private ...
Listing private\include ...
Listing private\include\python2.7 ...
Listing private\lib ...
Listing private\lib\PIL ...
Listing private\lib\android ...
Compiling private\lib\android\__init__.py ...
Compiling private\lib\android\apk.py ...
Compiling private\lib\android\mixer.py ...
Listing private\lib\encodings ...
Listing private\lib\json ...
Listing private\lib\pygame ...
Listing private\lib\pygame\threads ...
Listing private\lib\python2.7 ...
Listing private\lib\python2.7\bsddb ...
Listing private\lib\python2.7\compiler ...
Listing private\lib\python2.7\config ...
Listing private\lib\python2.7\distutils ...
Listing private\lib\python2.7\distutils\command ...
Listing private\lib\python2.7\email ...
Listing private\lib\python2.7\email\mime ...
Listing private\lib\python2.7\encodings ...
Listing private\lib\python2.7\hotshot ...
Listing private\lib\python2.7\importlib ...
Listing private\lib\python2.7\json ...
Listing private\lib\python2.7\lib-dynload ...
Listing private\lib\python2.7\logging ...
Listing private\lib\python2.7\multiprocessing ...
Listing private\lib\python2.7\multiprocessing\dummy ...
Listing private\lib\python2.7\plat-linux3 ...
Listing private\lib\python2.7\pydoc_data ...
Listing private\lib\python2.7\site-packages ...
Listing private\lib\python2.7\site-packages\android ...
Listing private\lib\python2.7\site-packages\jnius ...
Listing private\lib\python2.7\site-packages\pygame ...
Listing private\lib\python2.7\site-packages\pygame\threads ...
Listing private\lib\python2.7\sqlite3 ...
Listing private\lib\python2.7\sqlite3\test ...
Listing private\lib\python2.7\unittest ...
Listing private\lib\python2.7\wsgiref ...
Listing private\lib\python2.7\xml ...
Listing private\lib\python2.7\xml\dom ...
Listing private\lib\python2.7\xml\etree ...
Listing private\lib\python2.7\xml\parsers ...
Listing private\lib\python2.7\xml\sax ...
Listing private\lib\sqlite3 ...
Listing mygame ...
Compiling mygame\rotating_cube.py ...

I'm using Ant to build the package.

Buildfile: F:\pgs4a-master\build.xml

-check-env:
 [checkenv] Android SDK Tools Revision 24.0.2
 [checkenv] Installed at F:\pgs4a-master\android-sdk

-setup:
     [echo] Project Name: MYCUbe-1.0
  [gettype] Project Type: Application

-pre-clean:

clean:

BUILD FAILED
F:\pgs4a-master\android-sdk\tools\ant\build.xml:459: ../../google-play-services_lib resolve to a path with no project.properties file for project F:\pgs4a-master

Total time: 3 seconds

I have absolutely no idea how to proceed further. I know that it has something to do with path of project.properties file. Even searching on internet for similar problem didn't help me.Can anyone tell me how to edit the project.properties file. Many thanks in advance!

A request:

If somebody has already completed a project using pgs4a it can really help me if you could provide the example of the code directory location, the contents of the project.properties file and other relevant details about the project. I will edit my files and locations accordingly!. I would be very grateful.

Note: F:\pgs4a-master\mygame is folder containing python script `rotating_cube.py'



from Problem in building pygame apk (project.properties file error)

No comments:

Post a Comment