2016-02-01 3 views
1

Я создал файл Keystore.
Создан ant.propeties файл платформа/андроида папку
Обновленных мой проект:Кордова Ant Release возвращает Неверный файл: .../CordovaLib/build.xml

android update project -p /home/abiswas/workspace/rockstarpopstarAppFolder/platforms/android 

Выполнить следующую команду, чтобы создать версию релиза моего приложения Android:

cordova build android 

ant release 

После выполнения следующей команды, он возвращается:

[[email protected] android]$ ant release 
Buildfile: /home/abiswas/workspace/rockstarpopstarAppFolder/platforms/android/build.xml 

-set-mode-check: 

-set-release-mode: 

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

-pre-build: 

-check-env: 
[checkenv] Android SDK Tools Revision 24.4.1 
[checkenv] Installed at /opt/adt-bundle-linux-x86_64-20140702/sdk 

-setup: 
    [echo] Project Name: com.personal.rockstarpopstar 
    [gettype] Project Type: Application 

-build-setup: 
[getbuildtools] Using latest Build Tools: 22.0.1 
    [echo] Resolving Build Target for com.personal.rockstarpopstar... 
[gettarget] Project Target: Android 5.1.1 
[gettarget] API level:  22 
    [echo] ---------- 
    [echo] Creating output directories if needed... 
    [mkdir] Created dir: /home/abiswas/workspace/rockstarpopstarAppFolder/platforms/android/libs 
    [mkdir] Created dir: /home/abiswas/workspace/rockstarpopstarAppFolder/platforms/android/bin/rsObj 
    [mkdir] Created dir: /home/abiswas/workspace/rockstarpopstarAppFolder/platforms/android/bin/rsLibs 
    [mkdir] Created dir: /home/abiswas/workspace/rockstarpopstarAppFolder/platforms/android/bin/classes 
    [mkdir] Created dir: /home/abiswas/workspace/rockstarpopstarAppFolder/platforms/android/bin/dexedLibs 
    [echo] ---------- 
    [echo] Resolving Dependencies for com.personal.rockstarpopstar... 
[dependency] Library dependencies: 
[dependency] 
[dependency] ------------------ 
[dependency] Ordered libraries: 
[dependency] 
[dependency] ------------------ 
    [echo] ---------- 
    [echo] Building Libraries with 'release'... 

BUILD FAILED 
/opt/adt-bundle-linux-x86_64-20140702/sdk/tools/ant/build.xml:597: Invalid file: /home/abiswas/workspace/rockstarpopstarAppFolder/platforms/android/CordovaLib/build.xml 

Total time: 1 second 
[[email protected] android]$ ant debug -f "/home/abiswas/workspace/rockstarpopstarAppFolder/platforms/android/build.xml" 
Buildfile: /home/abiswas/workspace/rockstarpopstarAppFolder/platforms/android/build.xml 

-set-mode-check: 

-set-debug-files: 

-check-env: 
[checkenv] Android SDK Tools Revision 24.4.1 
[checkenv] Installed at /opt/adt-bundle-linux-x86_64-20140702/sdk 

-setup: 
    [echo] Project Name: com.personal.rockstarpopstar 
    [gettype] Project Type: Application 

-set-debug-mode: 

-debug-obfuscation-check: 

-pre-build: 

-build-setup: 
[getbuildtools] Using latest Build Tools: 22.0.1 
    [echo] Resolving Build Target for com.personal.rockstarpopstar... 
[gettarget] Project Target: Android 5.1.1 
[gettarget] API level:  22 
    [echo] ---------- 
    [echo] Creating output directories if needed... 
    [echo] ---------- 
    [echo] Resolving Dependencies for com.personal.rockstarpopstar... 
[dependency] Library dependencies: 
[dependency] 
[dependency] ------------------ 
[dependency] Ordered libraries: 
[dependency] 
[dependency] ------------------ 
    [echo] ---------- 
    [echo] Building Libraries with 'debug'... 

BUILD FAILED 
/opt/adt-bundle-linux-x86_64-20140702/sdk/tools/ant/build.xml:597: Invalid file: /home/abiswas/workspace/rockstarpopstarAppFolder/platforms/android/CordovaLib/build.xml 

Total time: 1 second 

Невозможно построить выпуск v чтобы загрузить приложение в Play Маркете.

ответ

0

Откройте окно командной строки и введите

android update project -p your_project_follder_path/platforms/android/CordovaLib 

Теперь закройте и открытой командной строки и перейти на платформах/андроида под свой проект и запустить Ant релиз

Это работает для меня!