Android library not building - android

I'm trying to create a test library from android application. I followed official google instruction, but when I'm trying to build, nothing happens. Android Studio does not create aar or apk file. Here is my gradle file and structure. Why it not building?

Related

How to connect Unity with android native lib?

I have a native (c++) android lib that I build in Android studio and this lib has an extension .arr. I need to use this lib in Unity as android plugin. So, I would like to clarify what is the correct way to connect this lib with Unity.
As far as I understand it should be like this:
Create c# script
Create Unity native plugin (actually it Visual Studio dll lib project)
Connect this native plugin with my native lib that I build in Android Studio
If I miss something here?
Maybe You be more specific according to the Unity Docs
To add an AAR plug-in to your Project, copy the .aar file anywhere within the Assets/Plugins/Android/libs path, then select it in Unity to open the Import Settings in the Inspector
window. Enable the Android checkbox to mark this .aar file as compatible with Unity
So Provided your .arr is ready at hand it should be easy peasy

How can I import a Facebook Login Sample in Android Studio?

I am trying to integrate Facebook Login into my App and was going through the samples provided by Facebook on Github:
https://github.com/facebook/facebook-android-sdk/tree/master/samples/LoginSample
Above is the Login Sample that I want to try out but seeing the project structure, I could only see build.gradle and not any other standard Android project files. I tried importing this sample as a project but ended up with a incomplete project which doesn't recognize any Android Module, nor there is any aapt compiler configured. It also complains about the AndroidManifest.xml, assets folder, etc.
I tried, creating an Android facet through Project Structure settings, but still the project doesn't get recognized as a full fledged Android project.
Is there any way, I can have it as an Android project?
You just need to clone or download the facebook-android-sdk repository. Once you download it just try to open it in Android Studio, you will be able to access LoginSample or other modules as an Android Project.

Cant use the Android SDK Classes after Exporting Generated Gradle to Android Studio

I had generated gradle files for a project created using Eclipse ADT. After Importing into Android Studio using the Import Gradle option, I am not able to use any of the classes present in the Android SDK for example the Button Manager.
The icon for my java files changed
Secondly, how can I merge two projects inside a single app ?
Please suggest me any link from where I can begin using Gradle?

Using Libraries with Android Studio

I am currently using Android Stuio Beta 0.8.1 an its working fine but I am having an issue with library projects are handled.
In Eclipse, I create an Android project which is my app project and another project which is my Library project. From my App project, I reference my Library Project and I can modify the library project and the changes are automatically built into the app project.
I am trying to do the same thing with Android studio but am having a problem.
The problem is I create my Library project in Android Studio and my App Project in Android Studio.
From my app project I go File > Import Module and point to my library project and it then copies all of the source code from my library project into my apps project structure.
From my app project I then project structure and select module dependency of the module I have just imported.
The problem is though, as it copies all of the source from my library project into my app project, if I modify the code that's imported into the app project structure, then the library project isn't updated, and if I update the library project code, the app referencing the library doesn't see the change.
My library is being referenced by multiple projects, and at the moment if I change, librar projects, the apps continue to use the old code, so I am having to copy/paste the source code into the apps project stucture and re-build.
Am I missing something basic or is it just Android Studio isn't really working too well witih libraries so copy/paste is my only option for the time being.
Because libraries must live within the main project, it's difficult to share them across projects. If that's your usage, the library should be its own project that you publish to maven locally. After that, you can declare it as a dependency similar to any other. Keep in mind that the version number of the library becomes important; when you make changes to the library, be sure to publish with a new version number.

android automating build using Hudson + third party libraries

I am working alongside with two other developers in an android application. In the application we use other third-party libraries like SlidingMenu.
In eclipse we should include the SlidingMenu project and point our application to use this project as library.
Now I want to automate the building of the application using Hudson(Jenkins) but I have no Idea how I will deal with the dependence libraries like SlidingMenu.
Any Ideas
So long as you can build your app on the command line (e.g. using the Ant or Gradle build systems for Android), then you can build your app in Jenkins.
For the Ant build system, all you need to do is place your dependency JARs in the "libs" directory.
Or if you're using library projects, the Eclipse plugin should have already added the required entries to your project.properties file.

Categories

Resources