i have created the sample app 0n mobilefirst 7.1 with mac 10.12.5 java 1.8 eclipse mars, once i have created project added the android and ios environment after done build all environment ,ideally it should create separate android folder for that but its not creating any separate android folder , please any solution really appreciated
The most likely cause of the issue is missing "Android Developer Tools" Plugin in your Eclipse. This is required to create the Android native project, when you add Android environment.
Verify its installation.
Related
I have MobileFirst 7.1 installed and I downloaded the IBMApplicationCenter.apk onto Android 5.1 phone. When I install it says "app not installed".
I set "allow unknown sources" and searched for any previous apps. How else can I debug this .. or is this version of the apk too old ?
From the phrasing of your question it does seem like you are using an incompatible version?
As part of the Application Center installation you have the AppCenter source - an Android project. You need to build that project into an .apk and you need to make sure that your development environment supports Android 5.1 - the configuration in AndroidManifest.xml.
What have you configured?
Environment:
Worklight 6.1.0.2
Dojo 1.9.4
Eclipse Juno
We have developed a hybrid mobile application using worklight 6.1. We use eclipse juno to develop the app. As Google has announced to end support for android eclipse tools, I would like to know, if there will be any impact on the way we develop the app. Will there be any problem while publishing the app (built using worklight) to Google Play store ?
I guess, we will not be able to use eclipse to run/debug the app now.
Thanks,
Vijay
It should not be an issue as you can still run your Android app in Android Studio.
There will not be a problem with publishing applications to Google Play Store.
You can configure Eclipse > Preferences > MobileFirst (or Worklight) with the location of your Android Studio installation. This will enable you to right-click on the application folder and select Run As > Android Studio project, which will launch the project in Android Studio.
The only limitation is that Worklight-generated projects are not compatible with Gradle, so you should not migrate to Gradle (Android Studio will suggest this). If you do migrate, the next time you build the project in Worklight Studio in Eclipse the native project that will be generated will again be non-Gradle...
I am working on hybrid Apps over IBM Mobile First Foundation on eclipse,I want to build an android app of the project, but when i configure the android SDK location and click on apply, nothing happens
Help!
The question is not clear enough... what are you applying? where? are you getting any errors, if yes, what are they?
When using MobileFirst Studio in Eclipse, the Android project can be generated in two ways.
By using the Google ADT tools.
Install the Eclipse plug-in and re-build the project by right-clicking the application folder and selecting Run As > Run on MobileFirst Development Server
By providing the path to Android Studio.
First install Android Studio and then, in Eclipse, navigate to File > Preferences > MobileFirst. Provide the path to the folder containing the executable. For example in Mac OS X that would be /Applications.
Then right-click on the Android environment folder and select Run As > Android Studio project.
Note: be sure not to convert the project to Gradle structure - this is currently not supported.
Has anyone tried the "Android - Adding native functionality to Hybrid Application using Apache Cordova plug-in" feature in v6.2 ?
I'm trying to use a 3rd party library on the client side and wanted to understand where to put the plug-in java class in the project. The documentation shows a java package (src) structure whereas the best I can find is normal folders in the android native folder.
Thanks.
The reason you see these as "regular" folders is likely because you are look at the Worklight project rather than the generated Android project.
Worklight project\apps\your_app\android\native\ ... will look as folders because they are indeed just folders.
Once you build your Worklight application (containing an Android environment), an Android project will be generated. In it, you will see the folders as packages, etc.
A Worklight project and application structure is explained in earlier training modules:
Creating your first Hybrid Worklight application
Previewing your application on Android
So, you should place your Java Class file in Worklight project\apps\your_app\android\native\src\com\package_name\ ...
Note about Cordova plug-ins in Worklight: depending on the plug-in this may not be possible to use as some plug-ins require using the Cordova plugman, which is not yet supported in Worklight.
After I migrated my project Worklight from version 6.0 to 6.1, the following error is occurring when trying to deploy the application:
[2013-12-19 11:37:02] FWLST1040E: android build failed: Cannot
overwrite template file
'C:\workspaces\worklight\CISSMartTax\apps\CISSMartTax\android\native\native.iml'
Unfortunately this currently works for me.
In Worklight 6.0.0.1 I've created a new Worklight project and application with the Android environment, built and deployed it
I then exported the Worklight project as a .zip file
In Worklight 6.1.0 I've imported the above .zipped project, built and deployed it
Ran the generated Android project in the Android emulator
This was with a blank new app; it's possible yours is more intricate than that.
Suggestions:
Delete the native folder and re-build and deploy.
Make sure to back-up any native Java classes and other artifacts you may have previously added to the native folder.
Provide your Worklight project (the original from 6.0.0.x) in a Dropbox download link for analysis...