Building android projects in netbeans with gradle support - android

I know that Android Studio is now the official IDE for developing Android apps, but my computer is really slow and I find it difficult to use Android Studio on it.
I'm using Netbeans for Android apps development and fortunately it works fine.
The problem I am having now is using the Android support libraries in netbeans. I found out that Android now uses the Gradle system for apps development in which the dependencies are declared, but the apps that that Netbeans creates don't have a Gradle file and I won't be able to add the dependencies.
My question is:
How do I create Gradle files in Netbeans?
Or how can I add the support libraries directly into my Netbeans projects without the need for Gradle?
I have downloaded the support libraries and I have also installed Gradle on my computer.

Related

error in android, Proguard.cfg (System can not find the file specified.)

How can I solve this problem shown in the image?
../tools/lib/proguard.cfg (System can not find the file specified)
The reason why you're getting that problem is because newer versions of the Android SDK no longer have a ProGuard configuration file and instead rely on the Android Gradle plugin (Android Studio) to provide the relevant ProGuard configuration.
Google has officially dropped support for the Eclipse-based Android Development Tools (ADT) plugin, as mentioned in their official announcement:
The Eclipse ADT plugin is no longer supported per our announcement. Android Studio is now the official IDE for Android, so you should migrate your projects to Android Studio as soon as possible. For more information on transitioning to Android Studio, see Migrate to Android Studio from Eclipse.
In order to be able to create new Android projects, you should migrate to Android studio using the migration steps that Google provided.

What's the Eclipse Andmore Project?

Android Studio was announced in May 2013 and maintained by Android technology team since then. It is based on the IntelliJ IDEA Community Edition, added features that are designed specifically for Android development and cooperated with JetBrains, creators of one of the most advanced Java IDEs available today. As the official Android IDE, Android Studio gives us access to a powerful and comprehensive suite of tools to evolve our app across Android platforms, whether it's on the phone, wrist, car or TV.
As Android Studio arises, Eclipse, the powerful open-sourced IDE, worked with Android Developer Tools (ADT) to create gorgeous Android apps, begins to fall. Now that when Android M Preview was released, Eclipse couldn't work with the latest Android SDK whose structure was changed but Eclipse couldn't adapt it.
It is said that development and official support for the ADT in Eclipse will be ended at the end of the year, just to make way for focus on all of their efforts on making Android Studio better and faster. But Eclipse isn't abandoned completely for Android Development. Android tools inside it continues to live. They created a new project called Andmore - Eclipse Android Tooling.
So, what is Andmore? Now that ADT in Eclipse is not supported any more, they create this Eclipse Android Tooling for what? After Eclipse don't work for Android development at all, developers would switch to Android Studio, the official IDE, I think, will someone prefer Andmore in Eclipse? If so, what are advantages of Andmore in Eclipse which force them to choose it?
Any tips will be appreciated. Thanks in advance.
The purpose of Andmore is to provide Android Eclipse tooling without having to go through multiple steps.
The technology development involves integrating and refactoring the Google ADT plugins as necessary to work with the project. Similarly, the former MOTODEV plugins have components that can be integrated into the project.
Andmore includes:
JDT for Android Java applications.
CDT for C/C++ shared libraries.
Gradle tooling (details TBD)
Maven Build support via the M2E-Android Eclipse Plugin.
Ant support via the built in Eclipse support for ANT.
A fork of Google's ADT (Android Development Tools) plugins for
Eclipse.These are maintained separately from Google's code line at AOSP, which will not be updated with any regularity.
The former MOTODEV Studio Plugins (now part of the Android Open
Source Project) upgraded to work with ADT.
A p2 repository and product build using tycho.
Mylyn Reviews for Gerrit Review integration.
EGit for source code management.
GitHub Plugin from EGit for better collaboration with GitHub
projects.
In addition to components, Andmore will produce an EPP package.
The source code for Andmore is maintained on Github. To contribute, please make sure you have a signed CLA with the Eclipse Foundation on file, and fork the repository. Pull requests and will be reviewed by an existing committer before being merged.
Source repository can be found at https://github.com/eclipse/andmore/

purpose of com.android.tools.build

I am a newbie to Android programming. I am using Android Studio 1.1.0
I have following query regarding building an app using gradle.
What is the purpose of specifying buildscript dependencies 'com.android.tools.build:gradle:1.1.0' in build.gradle
What does this build statement actually do.
I have searched the forum but could not find anything specific on this.
However from some of the google search it seems to suggest that this statement might be required for the gradle script to download Android Plugin for gradle.
I find it surprising that though I am using Android Studio I still need to download Android Plugin for gradle. Should it not be coming in-built.
Appreciate your time and help
As the name suggest, "Android Build Tools" is a command line tools for building your Java source code (along with all the related assets) into executable APK file. It's located at your Android SDK directory (usually at $ANDROID_HOME) and can be updated using Android SDK manager (accessible via Android Studio IDE).
What is the purpose of specifying buildscript dependencies com.android.tools.build:gradle:1.1.0 in build.gradle
Android is using Gradle build system. That build script dependency is Gradle plugin to interact (compile, test, etc) with the Android Build Tools. That line declares that your project require Android's Gradle plugin version 1.1.0.
I find it surprising that though I am using Android Studio I still need to download Android Plugin for gradle. Should it not be coming in-built.
Android Studio (AS) is just an IDE, you can actually use any IDE that support Gradle build system. Android Build Tools and its Gradle plugin (it's not AS plugin) is constantly updated by the devs separated from Android Studio project (although it's pretty closely related). Moreover, different projects can requires different version of build tools and its Gradle plugins. So it's just make sense that Android Studio requires them to be downloaded independently from the IDE.

Errors with Tizen IDE and HelloAccessoryProvider

I am trying a sample app for Tizen Wearable SDK but the IDE does not seem to be configured properly. It reports imports could not be resolved library and the samsung android libraries. My guess is these dependencies need to be added to the project's path somehow.
I tried adding external classes from the Tizen Wearable SDK
UPDATE
I have tried to install the ADT Plugin but I get stuck on the license screen
You don't have the Android plugins for Eclipse installed from what I can see on your preferences panel. The Tizen IDE, out of the box, only supports the Tizen Wearable build.
You will need to install the Android Development Tools (ADT) plugins for Eclipse and then point the preferences at the SDK. That will clear up your Android SDK build errors. Then you just need to add the Samsung SDK jars to your project if they still fail to build. The samples should already have the links to SDK jars in them, so just getting the plugins installed is your first step.
Here's a blog post I wrote on the subject a few months ago. Skip to the TL;DR part. But, the short answer is, add the ADT plugins by adding a new install site that points to
https://dl-ssl.google.com/android/eclipse/
You will not be able to install the Native Development Tools component due to a conflict with CDT versions, so uncheck that.
You can try using the Tizen IDE to create the HelloAccessoryConsumer (wearable part) and a separate Eclipse IDE with ADT plugin to create the HelloAccessoryProvider (Android part). Then add the .wgt file which is generated in the HelloAccessoryConsumer project to the assets folder in the HelloAccessoryProvider project.

Using library products without gradle files in Android Studio

I would like to create an app based around this library in Android Studio. However, it doesn't have gradle files and it doesn't seem to work without them. How would I use this library in Android Studio?
Migrate the library from Eclipse to Android Studio, using Migrating from Eclipse.

Categories

Resources