Bonjour,

j'utilise sencha touch 2.3 pour développer une application, sur mon ancien PC (xp) je pouvais générer mon APK sans soucis mais depuis que je suis passé sous windows 8 rien a faire : j'ai une erreur a chaque lancement de la commande :

sencha app build native
j'utilise la commande 4.0.1.45, sencha touch 2.3.
version de java 1.7.0_45
mon sdk Android est a jour, les API 14 et 16 sont installées.

l'erreur que j’obtiens :

[dex] Converting compiled files and external libraries into C:\wamp\www\test\build\native-package-mobile\test\packager.json\bin\classes.dex...
[dx]
[dx] UNEXPECTED TOP-LEVEL EXCEPTION:
[dx] java.nio.BufferOverflowException
[dx] at java.nio.Buffer.nextPutIndex(Buffer.java:519)
[dx] at java.nio.HeapByteBuffer.putShort(HeapByteBuffer.java:315)
[dx] at com.android.dex.Dex$Section.writeShort(Dex.java:818)
[dx] at com.android.dex.Dex$Section.writeTypeList(Dex.java:870)
[dx] at com.android.dx.merge.DexMerger$3.write(DexMerger.java:437)
[dx] at com.android.dx.merge.DexMerger$3.write(DexMerger.java:423)
[dx] at com.android.dx.merge.DexMerger$IdMerger.mergeUnsorted(DexMerger.java:317)
[dx] at com.android.dx.merge.DexMerger.mergeTypeLists(DexMerger.java:423)
[dx] at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:163)
[dx] at com.android.dx.merge.DexMerger.merge(DexMerger.java:187)
[dx] at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:439)
[dx] at com.android.dx.command.dexer.Main.runMonoDex(Main.java:287)
[dx] at com.android.dx.command.dexer.Main.run(Main.java:230)
[dx] at com.android.dx.command.dexer.Main.main(Main.java:199)
[dx] at com.android.dx.command.Main.main(Main.java:103)

BUILD FAILED
C:\Documents and Settings\maxusn\Local Settings\Application Data\Android\android-sdk\tools\ant\build.xml:892: The following error occurred while executing this line:
C:\Documents and Settings\maxusn\Local Settings\Application Data\Android\android-sdk\tools\ant\build.xml:894: The following error occurred while executing this line:
C:\Documents and Settings\maxusn\Local Settings\Application Data\Android\android-sdk\tools\ant\build.xml:906: The following error occurred while executing this line:
C:\Documents and Settings\maxusn\Local Settings\Application Data\Android\android-sdk\tools\ant\build.xml:284: null returned: 2

Total time: 18 seconds
""C:\Documents and Settings\maxusn\Local Settings\Application Data\Android\android-sdk\tools\android" create project --target android-14 --name test --activity STActivity --path "C:\wamp\www\test/build/native-package-mobile/test/packager.json\/" --package com.andr.test"
Can not open source file
Can not open source file
Can not open source file
Could not run ant with error: 1
Failed to package application
Copy operation failed src=C:\wamp\www\test/build/native/test\\ dst=C:\wamp\www\test/build/native-package-mobile/test/packager.json\\res\drawable-ldpi\icon.png
Copy operation failed src=C:\wamp\www\test/build/native/test\\ dst=C:\wamp\www\test/build/native-package-mobile/test/packager.json\\res\drawable-mdpi\icon.png
Copy operation failed src=C:\wamp\www\test/build/native/test\\resources/icons/LogoTest.png dst=C:\wamp\www\test/build/native-package-mobile/test/packager.json\\res\drawable-hdpi\icon.png

[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.ExProcess: stbuild exited with non-zero code : 7
[ERR] at sun.reflect.DelegatingMet
[ERR] hodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[ERR]
[ERR] Total time: 28 seconds
[ERR] The following error occurred while executing this line:
C:\wamp\www\test\.sencha\app\build-impl.xml:422: The following error occurred while executing this line:
C:\wamp\www\test\.sencha\app\packager-impl.xml:112: The following error occurred while executing this line:
C:\wamp\www\test\.sencha\app\packager-impl.xml:114: The following error occurred while executing this line:
C:\wamp\www\test\.sencha\app\packager-impl.xml:98: The following error occurred while executing this line:
C:\wamp\www\test\.sencha\app\packager-impl.xml:7: com.sencha.exceptions.ExProcess: stbuild exited with non-zero code : 7
mon packager.json :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
    "applicationName": "test",
    "applicationId": "com.andr.test",
    "outputPath": "../build/",
    "versionString": "1.0",
    "versionCode": "1",
    "inputPath": ".\\",
    "icon": {
        "57": "resources/icons/LogoTest.png",
        "72": "resources/icons/LogoTest.png",
        "114": "resources/icons/LogoTest.png",
        "144": "resources/icons/LogoTest.png"
    },
    "configuration": "debug",
    "platform": "android",
    "certificatePath": "test.keystore",
    "certificateAlias": "testMobile",
    "certificatePassword": "android",
    "permissions": [
        "INTERNET",
        "ACCESS_NETWORK_STATE",
        "CAMERA",
        "VIBRATE",
        "ACCESS_FINE_LOCATION",
        "ACCESS_COARSE_LOCATION",
        "CALL_PHONE"
    ],
    "sdkPath": "C:\\Documents and Settings\\trinquet\\Local Settings\\Application Data\\Android\\android-sdk",
    "androidAPILevel": "14",
    "orientations": [
        "portrait",
        "landscapeLeft",
        "landscapeRight",
        "portraitUpsideDown"
    ]
}
ps : je n'ai cette erreur que lorsque je modifie le packager : si je crée une nouvelle application et que je l'a compile sans rien modifier je n'ai aucune erreur.

ps 2 : d’après les recherches que j'ai effectué, cette erreur semble survenir lorsque la CMD est installée dans un répertoire contenant des espaces, or je l'ai installée dans
C:\senchaCmd\Sencha\Cmd\4.0.1.45
une idée ?