Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/201.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android pgs4a-Linux中的生成错误_Android_Python_Linux - Fatal编程技术网

Android pgs4a-Linux中的生成错误

Android pgs4a-Linux中的生成错误,android,python,linux,Android,Python,Linux,我使用FedoraLinux 我安装了pgs4a 0.9.4,并用api-8更新了sdk,但当我尝试使用./android.py build/home/armando/projects/games/amh release install>log_building.txt进行构建时,我从终端得到了这个结果 ./android.py build /home/armando/projects/games/amh release install Updating build files. Updat

我使用FedoraLinux

我安装了pgs4a 0.9.4,并用api-8更新了sdk,但当我尝试使用./android.py build/home/armando/projects/games/amh release install>log_building.txt进行构建时,我从终端得到了这个结果

./android.py build /home/armando/projects/games/amh release install

Updating build files.

Updated project.properties
Updated local.properties
Added file ./build.xml
Updated file ./proguard-project.txt
It seems that there are sub-projects. If you want to update them
please use the --subprojects parameter.

Creating assets directory.


Packaging internal data.

Listing private ...
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/sqlite3 ...
Listing /home/armando/projects/games/amh ...
Compiling /home/armando/projects/games/amh/editor.py ...
Compiling /home/armando/projects/games/amh/game.py ...
Listing /home/armando/projects/games/amh/levels ...
Listing /home/armando/projects/games/amh/levels/scores ...
Listing /home/armando/projects/games/amh/res ...
Listing /home/armando/projects/games/amh/res/icons ...
Listing /home/armando/projects/games/amh/res/sfx ...
Listing /home/armando/projects/games/amh/res/tiles ...
Compiling /home/armando/projects/games/amh/run_game.py ...
Compiling /home/armando/projects/games/amh/tile.py ...
Listing engine-private ...

I'm using Ant to build the package.

Buildfile: /home/armando/projects/pgs4a/build.xml

-check-env:
 [checkenv] Android SDK Tools Revision 22.6.3
 [checkenv] Installed at /home/armando/projects/pgs4a/android-sdk

-setup:
     [echo] Project Name: madals_amh
  [gettype] Project Type: Application

-pre-clean:

clean:
   [delete] Deleting directory /home/armando/projects/pgs4a/bin
   [delete] Deleting directory /home/armando/projects/pgs4a/gen
[getlibpath] Library dependencies:
[getlibpath] No Libraries
   [subant] No sub-builds to iterate on

-set-mode-check:

-set-release-mode:

-release-obfuscation-check:
     [echo] proguard.config is ${proguard.config}

-pre-build:

-check-env:
 [checkenv] Android SDK Tools Revision 22.6.3
 [checkenv] Installed at /home/armando/projects/pgs4a/android-sdk

-setup:
     [echo] Project Name: madalenas_mhajong-madalenas
  [gettype] Project Type: Application

-build-setup:
[getbuildtools] Using latest Build Tools: 19.1.0
     [echo] Resolving Build Target for madals_amh...
[gettarget] Project Target:   Android 4.1.2
[gettarget] API level:        16
     [echo] ----------
     [echo] Creating output directories if needed...
    [mkdir] Created dir: /home/armando/projects/pgs4a/bin
    [mkdir] Created dir: /home/armando/projects/pgs4a/bin/res
    [mkdir] Created dir: /home/armando/projects/pgs4a/bin/rsObj
    [mkdir] Created dir: /home/armando/projects/pgs4a/bin/rsLibs
    [mkdir] Created dir: /home/armando/projects/pgs4a/gen
    [mkdir] Created dir: /home/armando/projects/pgs4a/bin/classes
    [mkdir] Created dir: /home/armando/projects/pgs4a/bin/dexedLibs
     [echo] ----------
     [echo] Resolving Dependencies for madalenas_mhajong-madalenas...
[dependency] Ordered libraries:
[dependency] 
[dependency] ------------------
     [echo] ----------
     [echo] Building Libraries with 'release'...
   [subant] No sub-builds to iterate on

-code-gen:
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
     [echo] Handling aidl files...
     [aidl] No AIDL files to compile.
     [echo] ----------
     [echo] Handling RenderScript files...
     [echo] ----------
     [echo] Handling Resources...
     [aapt] Generating resource IDs...
     [aapt] /home/armando/projects/pgs4a/bin/AndroidManifest.xml:2: error: Error: Float         types not allowed (at 'versionCode' with value '1.0').

BUILD FAILED
/home/armando/projects/pgs4a/android-sdk/tools/ant/build.xml:653: The following error     occurred while executing this line:
/home/armando/projects/pgs4a/android-sdk/tools/ant/build.xml:698: null returned: 1

Total time: 6 seconds

The build seems to have failed.
第一:如果这里有人知道如何解决这个错误,如果你能帮助我,我将不胜感激

第二:这个论坛中的任何人都知道我如何使用我的家庭数据库中现有的sdk安装,我使用它来编译使用处理的程序,现在它对我来说很好,它在我的设备中安装我的apk也没有任何问题。 因此,当我命令./android.py build时,我需要将该文件更改为指向my~/sdk目录的apoint,而不是指向pgs4a/android sdk目录。。。在我的壳里

和平! 马克斯布

员额:1 加入时间:2014年5月20日星期二上午11:47 顶部

尝试运行

./android.py configure directory
再次输入并使用整数版本号

我这里有一段pgs4a 0.9.4配置过程的视频:

它在Ubuntu上运行。我已经在Linux上安装了多次pgs4a,安装和构建进展顺利。如果你还被卡住了,请随时问我更多的问题

哦,我这里还有一个常见问题:


它最初是为儿童设计的,但成年人似乎更多地使用FAQ

thak you friend我通过下载新版本的pgs4a解决了这个问题