This is a migrated thread and some comments may be shown as answers.

Build app package Android in cloud error

1 Answer 146 Views
AppBuilder extension for Visual Studio
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Truong
Top achievements
Rank 1
Truong asked on 25 Nov 2014, 08:57 AM
I build app package android in cloud and have error as follow:

"Cannot find application package for Android. See the log for more information"

Building package: [D:\Projects\Baza\Mobile\BazaMobileApp\MobileApphybrid\BazaHybridApp\Baza\obj\Debug\Baza.zip]
Project files uploaded to the cloud.
Sending build request for project Baza with parameters ProjectTypeGuids={070BCB52-5A75-4F8C-A973-144AF0EAFCC9}
Platform=Android
MobileProvisionIdentifier=
iOSCodesigningIdentity=
AndroidCodesigningIdentity=
Configuration=Debug
WP8CompanyHubApp=
BuildForiOSSimulator=
LiveSyncToken=5I+PO0Q4xDQPThpOn4PWn7fj0meitgGh+alrHRIV/50QEWxO2IVyevCqPbDDKoZct4pcjeK1GBgJr3j8jb58WEtMTU826qm4CXwBvFvmgo8=.
C:\Users\tuananhhn\AppData\Local\Microsoft\VisualStudio\12.0\Extensions\m1hcctls.0xr\Targets\Build.targets(185,3): error : Server build failed. Server output: Project "Baza.tmp.proj" (default targets):
Android Build Tooling revision 2014.11.18.1


Buildfile: /tmp/a4b981513b0d402fad9c62d563d7a7a5/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 22.6.2
 [checkenv] Installed at /usr/local/android/android-sdk-linux

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

-build-setup:
[getbuildtools] Using latest Build Tools: 19.0.3
     [echo] Resolving Build Target for Baza...
[gettarget] Project Target:   Android 4.4.2
[gettarget] API level:        19
     [echo] ----------
     [echo] Creating output directories if needed...
    [mkdir] Created dir: /tmp/a4b981513b0d402fad9c62d563d7a7a5/bin
    [mkdir] Created dir: /tmp/a4b981513b0d402fad9c62d563d7a7a5/bin/res
    [mkdir] Created dir: /tmp/a4b981513b0d402fad9c62d563d7a7a5/bin/rsObj
    [mkdir] Created dir: /tmp/a4b981513b0d402fad9c62d563d7a7a5/bin/rsLibs
    [mkdir] Created dir: /tmp/a4b981513b0d402fad9c62d563d7a7a5/gen
    [mkdir] Created dir: /tmp/a4b981513b0d402fad9c62d563d7a7a5/bin/classes
    [mkdir] Created dir: /tmp/a4b981513b0d402fad9c62d563d7a7a5/bin/dexedLibs
     [echo] ----------
     [echo] Resolving Dependencies for Baza...
[dependency] Library dependencies:
[dependency] 
[dependency] ------------------
[dependency] Ordered libraries:
[dependency] 
[dependency] ------------------
     [echo] ----------
     [echo] Building Libraries with 'release'...

nodeps:

-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.2
 [checkenv] Installed at /usr/local/android/android-sdk-linux

-setup:
     [echo] Project Name: CordovaLib
  [gettype] Project Type: Android Library

-build-setup:
[getbuildtools] Using latest Build Tools: 19.0.3
     [echo] Resolving Build Target for CordovaLib...
[gettarget] Project Target:   Android 4.4.2
[gettarget] API level:        19
     [echo] ----------
     [echo] Creating output directories if needed...
    [mkdir] Created dir: /tmp/a4b981513b0d402fad9c62d563d7a7a5/CordovaLib/res
    [mkdir] Created dir: /tmp/a4b981513b0d402fad9c62d563d7a7a5/CordovaLib/libs
    [mkdir] Created dir: /tmp/a4b981513b0d402fad9c62d563d7a7a5/CordovaLib/bin
    [mkdir] Created dir: /tmp/a4b981513b0d402fad9c62d563d7a7a5/CordovaLib/bin/res
    [mkdir] Created dir: /tmp/a4b981513b0d402fad9c62d563d7a7a5/CordovaLib/bin/rsObj
    [mkdir] Created dir: /tmp/a4b981513b0d402fad9c62d563d7a7a5/CordovaLib/bin/rsLibs
    [mkdir] Created dir: /tmp/a4b981513b0d402fad9c62d563d7a7a5/CordovaLib/gen
    [mkdir] Created dir: /tmp/a4b981513b0d402fad9c62d563d7a7a5/CordovaLib/bin/classes
    [mkdir] Created dir: /tmp/a4b981513b0d402fad9c62d563d7a7a5/CordovaLib/bin/dexedLibs
     [echo] ----------
     [echo] Resolving Dependencies for CordovaLib...
[dependency] Library dependencies:
[dependency] No Libraries
[dependency] 
[dependency] ------------------

-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...
     [echo] ----------
     [echo] Handling BuildConfig class...
[buildconfig] Generating BuildConfig class.

-pre-compile:

-compile:
    [javac] Compiling 90 source files to /tmp/a4b981513b0d402fad9c62d563d7a7a5/CordovaLib/bin/classes
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
     [echo] Creating library output jar file...
      [jar] Building jar: /tmp/a4b981513b0d402fad9c62d563d7a7a5/CordovaLib/bin/classes.jar

-post-compile:

-obfuscate:

-dex:
     [echo] Library project: do not convert bytecode...

-crunch:
   [crunch] Crunching PNG Files in source dir: /tmp/a4b981513b0d402fad9c62d563d7a7a5/CordovaLib/res
   [crunch] To destination dir: /tmp/a4b981513b0d402fad9c62d563d7a7a5/CordovaLib/bin/res
   [crunch] Crunched 0 PNG files to update cache

-package-resources:
     [echo] Library project: do not package resources...

-package:
     [echo] Library project: do not package apk...

-post-package:

-release-prompt-for-password:

-release-nosign:

-release-sign:
     [echo] Library project: do not create apk...
[propertyfile] Creating new property file: /tmp/a4b981513b0d402fad9c62d563d7a7a5/CordovaLib/bin/build.prop
[propertyfile] Updating property file: /tmp/a4b981513b0d402fad9c62d563d7a7a5/CordovaLib/bin/build.prop
[propertyfile] Updating property file: /tmp/a4b981513b0d402fad9c62d563d7a7a5/CordovaLib/bin/build.prop
[propertyfile] Updating property file: /tmp/a4b981513b0d402fad9c62d563d7a7a5/CordovaLib/bin/build.prop

-post-build:

release:

-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] /tmp/a4b981513b0d402fad9c62d563d7a7a5/bin/AndroidManifest.xml:2: error: Error: Float types not allowed (at 'versionCode' with value '7.0').


Error:      [aapt] /tmp/a4b981513b0d402fad9c62d563d7a7a5/bin/AndroidManifest.xml:2: error: Error: Float types not allowed (at 'versionCode' with value '7.0').
Error: 
BUILD FAILED
/usr/local/android/android-sdk-linux/tools/ant/build.xml:653: The following error occurred while executing this line:
/usr/local/android/android-sdk-linux/tools/ant/build.xml:698: null returned: 1

Total time: 6 seconds


Done building project "Baza.tmp.proj" -- FAILED.
.
Done building project "Baza.iceproj" -- FAILED.

Build FAILED.


Please help me.


 




1 Answer, 1 is accepted

Sort by
0
Kaloyan
Telerik team
answered on 27 Nov 2014, 01:50 PM
Hi Hung,

It seems that, your .abproject file contains a non integer value for AndroidVersionCode. According to Google, the Version Code of your application should be an integer and symbols like "." or "," are not allowed. To fix the issue on your side, I would suggest opening your Project Properties inside the preferred by you AppBuilder client, then navigating to the Android tab and adding a correct value for the Version Code field. If this is not working on your side and the Project Properties window throws an error upon loading, you will need to manually edit the AndroidVersionCode's value inside your .abproject file. You will find this file inside your project's folder. Once there, Instead of 7.0, you can add just 7, as a value of the AndroidVersionCode key. After this, you might need to reload the project inside the AppBuilder client you are using. I hope this fixes the matter on your side.

Please, let me know if you require further assistance.

Regards,
Kaloyan
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
Tags
AppBuilder extension for Visual Studio
Asked by
Truong
Top achievements
Rank 1
Answers by
Kaloyan
Telerik team
Share this question
or