Cordova based project to Fabric - android

I am searching for "Crash Analytics and Monitoring tools" for my Cordova (Ionic) based project.
There is a cordova-fabric-io-plugin on Github
https://github.com/engincancan/cordova-fabric-io-plugin.
I did changes according to instructions and also i installed intellij plugin to my IDE "intellij idea".Now when i click on fabric icon to upload it asks for Android Project as shows in below image link
http://i.stack.imgur.com/HVtL4.png
How to upload a Cordova (Ionic) based project to Fabric?

1) Open Android Studio or IntelliJ.
2) Ensure to install the Fabric plugin for Android Studio or IntelliJ.
3) Import the Android project present inside platforms/android folder of your cordova project.
4) Once imported Fabric should recognize the project and add the fabric SDK.

Related

Install cordova plugin once imported to Android Studio

I'm trying to install a cordova plugin to a project which has already been imported to android studio.
If I run:
cordova plugin add wifiwizard
It says:
Current working directory is not a Cordova-based project.
How do I correctly install this plugin, without having to start again?
First you have to create a Cordova project
cordova create nameOfProject
Then you go to this project (cd nameOfProject) and you add in this folder the plugin you want as you did it.

Import a Cordova ionic project into Android studio?

I'm trying to import an Cordova Ionic project in Android Studio to modify some things and try to solve some bugs but I can't.
I never work with Ionic before and I tried to follow some tutorials about how to import Ionic into Android but no one works for me.
In all of them you have to go to Android Studio > Import Project (Eclipse ADT, Gradle, etc.) and then select a folder called platform and then the Android Gradle.
But the thing is that in my project I only have this folders: hooks, css, www.
My highlighters to the problem above are:
To open a Cordova for Android project in Android Studio:
Launch Android Studio.
Select Import Project (Eclipse ADT, Gradle, etc).
Select the Android platform directory in your project (/platforms/android).
For the Gradle Sync question you can simply answer Yes.
Once it finishes importing, you should be able to build and run the app directly from Android Studio. See Android Studio Overview and Building and Running from Android Studio for more details.
Refs:
https://cordova.apache.org/docs/en/latest/guide/platforms/android/
https://www.codeproject.com/articles/1068176/step-by-step-guide-to-build-ionic-hybrid-app-using
For the theory behind the bove logic and possible bunders you may make, please see my answer to the following question:
Building Ionic framework in android studio
You dont have to import the Android Gradle. You have to previously do a
ionic platform add android
ionic build android
and then import your platforms/android folder
- In Android Studio
Choose File->Settings
Navigate to Plugins Tab
Choose Install JetBrains Plugins
Search for Phonegap/Cordova Plugin
Click On Install the Plugin
And Restart Android Studio
- Open IONIC Project in any editor
Run this Command
ionic cordova prepare android
It will Prepares the Ionic Project for Android
Then run this command -
ionic cordova build android
It will Builds the Ionic Project for Android.
3.Open Android Studio
Choose File > New Project > Import Project > Choose the android folder of cordova
directory > ok
Run the project with Android studio.

Crashlytics:Upload a Cordova project

The Crashlytics say we need to download the Fabric Plugin on Android Studio and then register/upload the app by running it. I have few questions about the same topic.
How to upload a Cordova (Ionic) based project to Crashlytics?
How to use this cordova-crashlytics plugin?
Any help is very helpful.
This can be done without Android Studio and without "uploading your app/project" to Crashlytics and without having their Fabric plugin. I'm working on a Cordova app using the Cordova CLI tool with Cordova Android platform 3.7.2. I got Crashlytics working by usign this slightly updated Cordova plugin: https://github.com/smistry-toushay/cordova-crashlytics-plugin
First get your Crashlytics Secret and Key by visiting the "Organizations Page" in your Crashlytics dashboard. Select your org at: https://www.crashlytics.com/settings/organizations and click on the links for "API Key" and "Build Secret" right underneath the org's name to copy those values.
Then run this on a command line in your Cordova directory:
cordova plugin add https://github.com/smistry-toushay/cordova-crashlytics-plugin.git --variable CRASHLYTICS_API_SECRET=YOUR CRASHLYTICS API SECRET HERE --variable CRASHLYTICS_API_KEY=YOUR CRASHLYTICS API KEY HERE
That should then add your Cordova App to the Crashlytics dashboard and any subsequent crashes will show up there.
Since developing ionic uses text editors only, and not IDE, we don't really use the android studio. However, for this special case, where native should immerse We will need to force build our app from studio.
What you can do is to
add android platform to cordova app.
import app to Android studio (File, Import Project, yourapp/platform/android)
follow the instruction from Crashlytics.
You can now proceed with your API keys and Build Secret.
on cli, follow the code to add the plugin "cordova plugin add cordova-..."
run the app on android studio.
Please let me know if this helps.
I was able to do this before, but I'll try to help you out everytime.
Cheers!

Android studio - Invalid App-Engine SDK Path

I am trying to run my first android application in Android studio. Application created successfully with new project vizard but cant run that as getting this error--
Invalid App-Engine SDK Path
Please help
All answers about disabling the plugin are incorrect.
You need to execute ./gradlew appengineDownloadSdk in the root of your project. Alternatively you can execute the task via the gradle sidebar in Android Studio.
This task will create the folders given the current versions in your build.gradle file. You have to run this when you update versions in your dependency list.
One solution is to disable the Google Cloud Tools for Android Studio plugin.
In Android Studio, click on:
File > Settings
Then click on Plugins (on the left), and uncheck "Google Cloud Tools For Android Studio". Then Apply.
It asks you to restart Android Studio. Click on Restart and it will work now.
Seems like this is the problem--
exception in plugin Google cloud tools for android studio
After disabling this plugin its working now!!
In other scenario if you want to setup Google app engine this might help
https://stackoverflow.com/a/20986031/472336
I've created folder
c:\Users\[user_name]\.gradle\appengine-sdk\appengine-java-sdk-1.9.18\
And copy sdk that download there
https://cloud.google.com/appengine/downloads
So currently project compiles and works for me

Android Studio and Bitbucket plugin

Suddenly when I try to checkout a project from BitBucket i get an error msg saying:
NoClassDefFoundError: com/intellij/ide/ui/ListCellRendererWrapper: com/intellij/ide/ui/ListCellRendererWrapper
NoClassDefFoundError: org/bitbucket/connectors/jetbrains/ui/BitbucketCloneProjectPanel$1: org/bitbucket/connectors/jetbrains/ui/BitbucketCloneProjectPanel$1
I tried to reinstall the plugin but no luck. Anyone please?
I found the solution here:
https://bitbucket.org/atlassian/jetbrains-bitbucket-connector/issue/56/solved-plugin-does-not-work-well-with-idea
I just downloaded the version in this thread answer and updated it in Studio.
Edit:
Download the latest one from here it works with all the versions of Android Studio, https://bitbucket.org/dmitry_cherkas/jetbrains-bitbucket-connector/downloads/
//Akbar Sha Ebrahim
Edit 2:
Unzip the file and then go to preferences (Settings on Windows), select Plugins header on the left, and choose "Install plugin from disk..." button on the right. Browse and select the bitbucket.jar file
//Tommie C.
For Android studio 13 it's failing with bitbucket plugin, try to install plugin https://bitbucket.org/dmitry_cherkas/jetbrains-bitbucket-connector/downloads/jetbrains-bitbucket-connector_IC-133.193.zip and reinstall the bitbucket plugin.
As a prerequisite, create an account and a project in bitbucket
Then:
(1) Download latest plugin from: https://bitbucket.org/dmitry_cherkas/jetbrains-bitbucket-connector/downloads/ and unzip it
(2) Open Android Studio --> New --> Plugin .--> Install Plugin from disk --> Navigate to bitbucket.jar inside your unzipped directory from (1)
(3) Restart android studio
(4) Go to tab New --> Project from Version Control --> Bitbucket
It will prompt for the bitbucket login
(5) Select your bitbucket repository where you want your project to be version controlled.

Categories

Resources