Appbuilder Android builds failing with Jenkins CI

7 posts, 0 answers
  1. Jim
    Jim avatar
    15 posts
    Member since:
    Jan 2015

    Posted 03 Dec 2016 Link to this post

    Android builds via Jenkins CI started breaking on 02-Dec-2016. Error message:

    Start Building for Android Configuration: Debug Error Message: {"Errors":[{"Code":"MSB4044","ProjectFile":"JenkinsCI","Target":"ManifestFilePrep","Message":"The \"UpdateAndroidPermissions\" task was not given a value for the required parameter \"AdditionalPermissions\".","LineNumber":0,"ColumnNumber":0,"EndLineNumber":0,"EndColumnNumber":0,"IsRealError":true}],"Warnings":[],"Output":"Project \"JenkinsCI.tmp.proj\" (default targets):\r\n\tError: The \"UpdateAndroidPermissions\" task was not given a value for the required parameter \"AdditionalPermissions\".\r\nDone building project \"JenkinsCI.tmp.proj\" -- FAILED.\r\n","ResultsByTarget":{"Build":{"Status":"Failure","Items":[]}}} Build finished for 1.64 seconds

    Build step 'Telerik AppBuilder Build Step' marked build as failure

  2. Tsvetina
    Admin
    Tsvetina avatar
    2087 posts

    Posted 05 Dec 2016 Link to this post

    Hello Jim,

    Other customers reported the same error message on Android build with regular AppBuilder builds and the development team tracked it down to a bug where the build fails for apps that don't have any Android permissions enabled.

    The bug will be addressed in a future release and in the meantime, you can enable one of the Android permissions for your app to make it build successfully. A permission that is almost always used by apps is the INTERNET one, so you can consider enabling it.

    Regards,
    Tsvetina
    Telerik by Progress
     

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

     
  3. Jim
    Jim avatar
    15 posts
    Member since:
    Jan 2015

    Posted 05 Dec 2016 in reply to Tsvetina Link to this post

    Hi, thanks for the response. I've checked the failing builds and the INTERNET permission is enabled. Here is an example of the App_Resources/Android/AndroidManifest.xml file. This file has been unchanged in my project since March of this year.

     

    <?xml version="1.0" encoding="utf-8"?>
    <manifest android:versionCode="$AndroidVersionCode$"    
              android:versionName="$BundleVersion$" 
              package="$AppIdentifier$" 
              android:windowSoftInputMode="adjustPan"
              android:hardwareAccelerated="$AndroidHardwareAcceleration$"
              xmlns:android="http://schemas.android.com/apk/res/android" >
            <supports-screens
                    android:largeScreens="true"
                    android:normalScreens="true"
                    android:smallScreens="true"
                    android:xlargeScreens="true"
                    android:resizeable="true"
                    android:anyDensity="true"/>

            <application android:label="@string/app_name" 
                         android:icon="@drawable/icon" 
                         android:hardwareAccelerated="$AndroidHardwareAcceleration$">
            <activity android:label="@string/app_name" 
                          android:name=".TelerikCallbackActivity"
                          android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale"
                          android:launchMode="standard"
                          android:theme="@android:style/Theme.Black.NoTitleBar" >
                          <intent-filter>
                          <action android:name="android.intent.action.MAIN" />
                            <category android:name="android.intent.category.LAUNCHER" />
                          </intent-filter>
                </activity>
            </application>
            <uses-sdk android:minSdkVersion="16" />
        <uses-permission android:name="android.permission.INTERNET" />
    </manifest>

     

  4. Tsvetina
    Admin
    Tsvetina avatar
    2087 posts

    Posted 06 Dec 2016 Link to this post

    Hello Jim,

    We are unable to reproduce the issue that you describe with the internet permission enabled. Will it be possible that you open a support ticket and send us your project there, or if your project is in Telerik Platform, tell us its name, so we can test it locally and see why the build keeps failing?

    Regards,
    Tsvetina
    Telerik by Progress
     

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

     
  5. Jim
    Jim avatar
    15 posts
    Member since:
    Jan 2015

    Posted 06 Dec 2016 in reply to Tsvetina Link to this post

    I found and fixed the problem. It was an issue with the .abproject file, not the AndroidManifext.xml. Thank you.
  6. jaswinder
    jaswinder avatar
    1 posts
    Member since:
    Aug 2017

    Posted 04 Aug Link to this post

     

     

    Hello I getting this error while i not used telerik in my project during build i getting this error 

    Severity Code Description Project File Line Suppression State
    Error  The "OpenAccessDeploy" task could not be loaded from the assembly C:\Program Files (x86)\Telerik\Data Access\\sdk\enhancer.exe. Could not load file or assembly 'Microsoft.Build.Utilities, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. NetTax.Data

  7. Tsvetomir
    Admin
    Tsvetomir avatar
    19 posts

    Posted 09 Aug Link to this post

    Hello Jaswinder,

    This is the forum for Telerik AppBuilder product for mobile development and tt seems that you are referring to OpenAccess. However, I found this forum thread which might help you http://www.telerik.com/forums/data-access-stopped-working-on-my-pc


    Kind Regards,
    Tsvetomir
    Progress Telerik
     

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

     
Back to Top