Unable to Config Android sdk in Mobile First Foundation 7.1 - ibm-mobilefirst

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.

Related

compile apk on a folder "Android" already created previously in react-native

I'm new to react-native, I've seen tutorials but everyone uses expo. I downloaded this project where they don't use expo. I want to compile this application for android, to finally get an .apk
This application already has a folder called "Android" but inside it does not have its respective .apk. How can I generate it?
this is the repository:
https://github.com/zsajjad/BusinessCard
It would be great if you can attach screenshots of how I should do it
Note. I have the latest version of android studio and I don't see the option of "build"
commands like "gradlew" from the console, they don't work, it's as if I didn't have that command installed
Following instructions for build apk using android studio
Hope you installed node and react native on your machine. If not
please follow the link to install it.Install node and react native
open your command prompt or terminal and redirect to your download project - cd /Businesscard Master (change it according to your project location)
Now enter - npm install
Enter - react-native link
Follow the android related linking instructions on following link react native camera
Hope you know about android camera and storage permissions.
same thing for react native text detector. Because your downloaded project have that packages in package.json
Now open your project android folder in android studio using open existing android project.
Then select build your project from android studio build menu and run it also
Generate apk using build menu- same process you have to follow for native android project
You don't need to use the CLI, that's needlessly complicated and it obscures what Android Studio is actually doing. Here's all you need to do.
Open the whole /Android/ folder in Android Studio. This is your "project" similar to how you open a *.xed file in XCode. Except in Android Studio, you just open up the whole folder to get the build.
Android Studio will now prepare your project using Gradle. If there are any errors in the preparation it will tell you about them. Assuming your gradle and Android Studio versions are compatible and you got no errors, you're now ready to emulate, debug and create a production build. At this point the workflow is similar to using XCode. You'll see emulators under Tools -> AVD Manager.
In the file menus go to Build->Generate APK. You can choose between signed APKs, debug APKs and so on. You'll need the key file if you're signing the APK on your computer, otherwise there's also Google Play signing after you upload the APK.
TL;DR: Just open your /Android/ folder in Android Studio.
Side note: When Android Studio gives you popups to upgrade stuff don't do it. NEVER upgrade Gradle or Android Studio unless the RN / Expo team specifically ask you. This will break your whole project and you will need to rebuild the platform.

MobileFirst 7.1 build all environment is not creating android folder

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.

Worklight: Any impact of google ending support for android eclipse tools

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...

Worklight v6.2 - Android Cordova Plug-in

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.

IBM Worklight 6.1 - Unable to deploy upgraded project

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...