Integrating fabric to existing project — how to resolve "No Android modules detected"? - android

Simply trying to add fabric to existing Android project. Followed their instrustions for IntelliJ IDEA:
Registered
Downloaded and installed fabric plug-in
Logged in
Going to add android module, got this result
As you can see, actually there is android module at the project. How to fix this?

Was forced to install Android Studio and integrate the plugin there to resolve this. Later found guide for manual installation, which may be helpful.

Related

An alternative way for building a Unity project for Android

For the last few days, I have been trying to build a testing project for android using the default build method but I just keep recieving errors and not knowing how to fix them.
Short Error and Full Error Decscription. Also I am using Unity 5.6.7f1 with Admob plugins (And yes because my pc is shit so I use this version)
So I want to ask is there an alternative way for building an android app with Unity. I have heard about exporting the project to gradle and building it using Android Studio. But I don't know how.
If you know an alternative way or how to build the project with Android Studio or how to fix the error PLEASE ANSWER. I am having a nightmare with building this stupid test project to Android
The problem is your jdk(1.8.0_311) is too new to support legacy build command from Unity (5.6.7f1).
Two method to solve:
Install older jdk
if you don't know which version you should use. You may use the default jdk with Unity installer in preferences. (I'm not sure 5.6.7f1 is supported).
Export android project
You can export android project by check the "Export Project". Then use android studio to build apk.

Add firebase cloud messaging support without gradle or android studio assistant

I'm trying to add firebase support to an existing application.
I followed the documentation (Firebase and android) but everything is about gradle.
The app i'm working with was made on Intellij and I don't have gradle on my project, It would be a little bit tricky to migrate to another IDE.
So here is my question, can I add firebase cloud messaging support without gradle ? I have some libraries included in my project under .jar files but I wasn't able to find any .jar files for firebase (and I guess there is some dependencies)
Edit: I found this: https://developer.android.com/studio/intro/migrate
It's possible to integrate firebase without Gradle file. For that, there is three way to integrate firebase without Gradle. But, I suggest you, to migrate Android Studio from IntelliJ developer tool.
Still, you do not want to migrate three ways are as below:
Copy firebase SDK in your project and then use it as you want. Download firebase SDK for Android from below link.
Download Firebase SDK
Note: It's not a good way to integrate firebase SDK into your project. Because when you use the above way then it will be about specific version SDK which will difficult to update with a new version after a long time for an application update you are trying.
Use Maven to integrate firebase in your project. For taking maven for firebase SDK go to below link. From below link, you will find different maven for a different product by Firebase.
Firebase SDK Mavan
Note: I am not sure about using maven in an android project will work properly or not. But you should have to try because of its easy way to update the new version of firebase SDK when new update available.
Add AAR file in your project. AAR file is same as a JAR file. So, you have to include AAR file which you can find from the above link for maven. For every product, there is a separate AAR file which you have to download and integrate it.
Note: I am not sure about to integrate AAR file in your project will work or not. But you should have to try to integrate it. It's also easy to update when new update available.
The best advice I can give you is to move your build to Gradle. You can then build your project from all IDEs including IntelliJ and also on the command line.

How to use Android NDK and Fabric at the same time?

I have a Crashlytics-enabled app (which is now part of Twitter's Fabric) and I need to add some JNI functionality using the Android NDK.
I've switched to experimental gradle as Android Studio prompted me that way:
http://tools.android.com/tech-docs/new-build-system/gradle-experimental
When I've applied the necessary changes and tried to sync, I've got the error:
Crashlytics was applied to a project without an Android plugin. Please make sure the Crashlytics plugin is applied after the appropriate Android plugin for your project.
I've googled the error and found out that it's a problem between Fabric and experimental gradle, and Fabric team doesn't really seem to care about fixing it any time soon: https://twittercommunity.com/t/gradle-experiental-support/53441.
I've stumbled upon Issue with experimental gradle: The android plugin must be applied to the project but I have no idea what to do there, and I'm not sure if it's the right way to go?
How can I use Android NDK and Fabric in my project?
So gradle-experimental and Fabric don't mix.
Solution:
1) update to latest Android Studio 2.3.1
2) follow this tutorial to drop gradle experimental: https://developer.android.com/studio/projects/add-native-code.html
What I did was create a new temporary project with C++ support enabled and added a blank activity.
Then I opened my current project and the temporary project and copied the necessary changes into my own project.
After I was done (about 1 hour of work) I was able to build my C code into a library, load the library into my project, and make the JNI calls.

Pre-alpha Mapbox integration into Eclipse Android Project

I have an existing Eclipse android project that I would like to use the pre-alpha MapboxSDK with. I have tried using gradle to try to build the library into my project, but have been unsuccessful. Is there someone out there that would be able to detail a step by step procedure for importing and integrating the SDK into an existing project?
Best place to ask would be on the issue tracker for the project, and to share the specific error that you happen upon in trying to set the project up.

Add facebook SDK to IntelliJ Android project?

How can I add the facebook sdk to my android project in IntelliJ? I'm familiar with how to add a library project to an existing project in Eclipse, but not in IntelliJ. Anyone know how?
The answer below is outdated, please refer to the actual solution.
If it's just a jar, you can add it to the module dependencies.
If you want to use Android Library with source code, you need to create a new Module in IDEA with Android Facet and specify in the facet settings that it's Android Library Project. Configure module content and source roots and then add this module as a dependency to your Android application module.
Here are the screenshots for the Facebook SDK Android Module configuration in IDEA:
Note that the root of the module is set to the facebook subdirectory from the GitHub repository and Is Library Project checkbox is enabled.
If you add this module as a dependency to your application, everything should build fine.
I've also uploaded a sample project that consists of simple sample provided with the SDK and this facebook API module as a dependency, you can download and use it for reference.
Remove if inappropriate - but this solution was much more relevant for the latest version of IDEA and the latest Facebook SDK: https://stackoverflow.com/a/14732898/1711200
Tested with IDEA 12.1.2 and Facebook SDK 3.0.1
My reason for posting this is because the directory structure for the latest Facebook SDK is different & makes this post outdated. I also kept getting directed to this thread, whereas the thread I've linked to is a better & more relevant solution.

Categories

Resources