#StackBounty: #android #python #python-2.7 #pygame #apk Problem in building pygame apk (project.properties file error)

Bounty: 50

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-masterbuild.xml
Updated file F:pgs4a-masterproguard-project.txt

Creating assets directory.


Packaging internal data.

Listing private ...
Listing privateinclude ...
Listing privateincludepython2.7 ...
Listing privatelib ...
Listing privatelibPIL ...
Listing privatelibandroid ...
Compiling privatelibandroid__init__.py ...
Compiling privatelibandroidapk.py ...
Compiling privatelibandroidmixer.py ...
Listing privatelibencodings ...
Listing privatelibjson ...
Listing privatelibpygame ...
Listing privatelibpygamethreads ...
Listing privatelibpython2.7 ...
Listing privatelibpython2.7bsddb ...
Listing privatelibpython2.7compiler ...
Listing privatelibpython2.7config ...
Listing privatelibpython2.7distutils ...
Listing privatelibpython2.7distutilscommand ...
Listing privatelibpython2.7email ...
Listing privatelibpython2.7emailmime ...
Listing privatelibpython2.7encodings ...
Listing privatelibpython2.7hotshot ...
Listing privatelibpython2.7importlib ...
Listing privatelibpython2.7json ...
Listing privatelibpython2.7lib-dynload ...
Listing privatelibpython2.7logging ...
Listing privatelibpython2.7multiprocessing ...
Listing privatelibpython2.7multiprocessingdummy ...
Listing privatelibpython2.7plat-linux3 ...
Listing privatelibpython2.7pydoc_data ...
Listing privatelibpython2.7site-packages ...
Listing privatelibpython2.7site-packagesandroid ...
Listing privatelibpython2.7site-packagesjnius ...
Listing privatelibpython2.7site-packagespygame ...
Listing privatelibpython2.7site-packagespygamethreads ...
Listing privatelibpython2.7sqlite3 ...
Listing privatelibpython2.7sqlite3test ...
Listing privatelibpython2.7unittest ...
Listing privatelibpython2.7wsgiref ...
Listing privatelibpython2.7xml ...
Listing privatelibpython2.7xmldom ...
Listing privatelibpython2.7xmletree ...
Listing privatelibpython2.7xmlparsers ...
Listing privatelibpython2.7xmlsax ...
Listing privatelibsqlite3 ...
Listing mygame ...
Compiling mygamerotating_cube.py ...

I'm using Ant to build the package.

Buildfile: F:pgs4a-masterbuild.xml

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

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

-pre-clean:

clean:

BUILD FAILED
F:pgs4a-masterandroid-sdktoolsantbuild.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-mastermygame is folder containing python script `rotating_cube.py’

Additional Info:

My existing project.properties file in directory pgs4a-master (outside mygame directory) reads

target=android-19 
android.library.reference.1=../../google-play-services_lib

The path to my google-play-services_lib folder is

pgs4a-master/android-sdk/extras/google/google-play-services/libproject/google-play-services_lib 

which also contains a project.properties file which reads:

target=android-10 
android.library=true 


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.