Porting existing Cordova app into Android Studio - android

I have an existing Cordova app that I've been testing in Xcode.
The workflow was simple:
1. cordova build ios
2. open xcode project file in Xcode
3. either run in simulator or build directly to device
I'm tyring to figure out the same for running an Android build for testing.
1. Installed Android Studio
2. Installed and configured Android SDK 19
3. When I setup my run configuration, it says:
"AndroidManifest.xml doesn't exist or has incorrect root tag"
I've followed the trail to Cradle, migrating existing project to Cradle, but have been unsuccessful so far in figuring out how to take an existing Cordova project and getting it to run on my device.
Is there a workflow as easy as Xcode's 1...2...3... for Android?

As far as I know, android studio isn't officially supported by cordova/phonegap yet, you should use the ADT.
But here you can read how to work with android studio beta and cordova/phonegap
http://iphonedevlog.wordpress.com/2014/10/10/using-android-studio-beta-with-cordova-phonegap/

Related

React Native does not find a supported Android SDK version

I´m trying to run react-native in a android emulator (ejected expo project), but react-native cannot find a proper version of the SDK. If I run react-native doctor, this is what the it is displayed:
Note that I've added every single possible Android SDK build version from Android Studio, and none of them seems to be accepted by react-native...
Any clues?

can i use my flutter codes that i wrote in android studio or visual studio for ios?and how?

I just started learning flutter and I have a question.
1-is it possible to compile the code that in the android studio or visual studio straight to ios?
2-if I cannot compile it straight to ios, can I use those codes and compile them with Xcode in a macos without any change in them(flutter codes that i wrote in the android studio or visual studio)?
Yes, you need Xcode installed though.
A Flutter project built in Android Studio compiles directly for iOS.
You can build directly for iOS from Android Studio, but Xcode needs to be installed.
You can also
build from a terminal using flutter build ios --release
debug from withing Android Studio a Flutter project running on an iOS simulator or device.
It is possible.
You just have to open the application using Xcode and run it on you iOS device or emulator. Please note that iOS apps can only be built and tested (on both emulators and real devices) on macOS!
Run flutter doctor to detect any setup problems that might need to be fixed.
Also use that native IDEs (Android Studio for Android, XCode for iOS) to build + run your app.

Build Variants not showing on Android Studio Cordova Project

I'm running Ubuntu 17.04 and Android Studio 2.3.3.
I've developed a web application and made a Cordova project from it.
Now I've created android platform, and need to open the platform with Android Studio in order to sign the app and upload it to the Play Store.
The thing is that Build Variants option is not showing. Don't know what I'm missing.
I checked this link
Android Studio - Build variants not showing up
But no results.
Any ideas?

PHONEGAP - Error while starting emulated android on phonegap; I use the SDK installed by android Studio

The error I get on the console; When I run the command "phonegap emulate android"
->Error: Could not find gradle wrapper within Android SDK. Might need to update your Android SDK. Looked here: C:\Users\wende\AppData\Local\Android\sdk\tools\templates\gradle\wrapper
I also experienced this issue (among many others) in my attempts to get a phonegap app to work in my environment.
I found a solution in the second response (by jcesarmobile) to this question:
Error: Could not find gradle wrapper within Android SDK. Might need to update your Android SDK - Android
Specifically, I had to make sure my Android Studio and Android SDK Tools were updated to the latest version, and then I had to update my Cordova Android platform to version 6.2.2.
phonegap cordova platform rm android
phonegap cordova platform add android#6.2.2

how to develop android app using ionic framework

I want to develop app using visual studio in .NET platform. Can I use ionic framework to develop app in visual studio. If yes then please tell how to do it and tell how to install ionic framework and which are all the software we require to develop app using ionic framework..??
To develop cross-platform Hybrid apps in Visual Studio using Ionic...
1.Download & Install Visual Studio Community it is recommended by ionic itself for developers using Windows.
2.Download "Visual Studio Tools for Apache Cordova" officially from here
https://www.visualstudio.com/en-us/explore/cordova-vs.aspx
with that you can build apps for iOS, Android, and Windows using web technologies.
2.Run the setup & click Install for the products shown.
3.Go to Tools -> Extensions and Updates inside Visual Studio and in the Online tab search for Ionic and install it.
4.Now you can start a new project and select the Ionic project template, give your project a name and wait for Visual Studio to do the rest.
You can use node's package manager (npm) to install the ionic framework.
$ npm install -g ionic
For absolute beginners a startertemplate should be used.
Have a look here for more detailed informations:
https://www.npmjs.com/package/ionic
Of course you need a text editor, and a browser comes pretty handy too.

Categories

Resources