My Appbuilder is not building any Android App

7 posts, 0 answers
  1. PPP
    PPP avatar
    6 posts
    Member since:
    Aug 2016

    Posted 08 Sep Link to this post

    I would like to test what I am making but app builder stopped building on Android, is not working an any app, Not even on new ones.

    It started happening since the problem to log in on the appBuilder.

     

    Help please.

     

  2. Dimitar Kerezov
    Admin
    Dimitar Kerezov avatar
    10 posts

    Posted 13 Sep Link to this post

    Hi PPP,

    Regarding the problem with your Auto Compartido project:

    After examining the logs you've attached and checking the logs on our servers as well I have come to the conclusion that one of your plugins - plugin.google.maps depends on com.google.playservices. Since April last year however, all of cordova's plugins migrated to npm. As a side effect of this all of the plugins changed their names and com.google.playservices is actually named cordova-plugin-googleplayservices.

    The above said, I assume you could do one of the following in order to resolve the issue:
    1. Try upgrading your plugin.google.maps plugin, as it probably has a newer version
    2. Add cordova-plugin-googleplayservices as a custom plugin, following these steps:
      1. Add the latest master branch as a custom plugin
      2. Open the plugin.xml and change the id to cordova-plugin-googleplayservices

    Additionally, you might also need to update the android:minSdkVersion in your project's AndroidManifest.xml file to 14 if you haven't done so, as this is now required for your project to successfully build on our side.

    As for the problem with your xVideos project it appears you have the android permission ACCESS_MOCK_LOCATION. This permission is intended for debug builds only. If you want to build a release package, containing this permission though you can go through these steps:
    1. In the AppBuilder Windows client right-click your project and select Edit Configuration -> Android Manifest from the context menu. This will generate and open an AndroidManifest.xml file for editing.
    2. Edit the manifest tag and add xmlns:tools="http://schemas.android.com/tools" as an attribute to it. It should now look like this:
      <manifest android:versionCode="$AndroidVersionCode$"
                android:versionName="$BundleVersion$"
                package="$AppIdentifier$"
                android:windowSoftInputMode="adjustPan"
                android:hardwareAccelerated="$AndroidHardwareAcceleration$"
                xmlns:android="http://schemas.android.com/apk/res/android"
                xmlns:tools="http://schemas.android.com/tools">
    3. Locate the following line:
      <uses-sdk android:minSdkVersion="14" android:targetSdkVersion="21"/>
      And below it add another line so that the end result is:
      <uses-sdk android:minSdkVersion="14" android:targetSdkVersion="21"/>
      <uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION" tools:ignore="MockLocation" />

    This should enable you to successfully build your applications.

    Please, let me know if this helps.

    Regards,
    Dimitar Kerezov
    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. PPP
    PPP avatar
    6 posts
    Member since:
    Aug 2016

    Posted 03 Oct Link to this post

    Hi Dimitar, I am trying to understand this errors. 
    The examples that you showed a solution are running ok now, but it keep happening to me, I would like to understad what could be the problem and why its so hard to use plugins.

    In the new example I am starting a small app, It doesn't do much a this time. Its a Ionic, Firebase App, in witch I would like to test using MAPBox and Wikitude. I would like to make a simple test.

    Every thing runs smooth until I install Mapbox and/or Wikitude (both are Teleriks approved plugins).

    It just stops compiling. If I remove them the app will work again.

    Please Help.

  4. PPP
    PPP avatar
    6 posts
    Member since:
    Aug 2016

    Posted 03 Oct in reply to PPP Link to this post

    And just in case, Yes I already installed the Mapbox Token
  5. PPP
    PPP avatar
    6 posts
    Member since:
    Aug 2016
  6. PPP
    PPP avatar
    6 posts
    Member since:
    Aug 2016

    Posted 03 Oct Link to this post

    To any who may have a similar problema.
    After hours of playing with configuration I dicuvered 2 things.

    Mapbox:
    1. You need to build a key that grants access to everything, new one not the default.

    Wikitude:
    2. Use the wikitude version 4.1.0 if you are using cordova 4x. Use newer versions if you are using Cordova 5 or you will run into the problems posted.

     

    Thanks finally its working.... to this point.




  7. PPP
    PPP avatar
    6 posts
    Member since:
    Aug 2016

    Posted 03 Oct Link to this post

    To any one who may run into this problems.

    1. Mapbox: please m,ake a new key with all the permissions or it will fail.
    2. Wikitude: just install v4.1.0 if you are using cordova 4x. Newer versions work with cordova v5.

    Thanks, ir working to this point.

Back to Top