Is it possible to use IntelliJ 12 (12.1.6 Ultimate) and Gradle to build Android projects? I can't find any information on doing so outside of Android Studio.
I can get my APK to build just fine, but IntelliJ doesn't seem to pick up the dependencies downloaded by Gradle. I know they're downloaded as I can see them in my cache folder.
Switching from the android plugin to the java plugin works just fine.
I don't think it's possible, as Android Studio is based on IntelliJ 13 (EAP).
Related
Well i am having trouble recently while importing the android directory of a react native project to android studio.
It used to work well before but now its throwing This version of the Android Support plugin for IntelliJ IDEA (or Android Studio) cannot open this project, please retry with version 4.2 or newer.
any way to fix this?
Thanks in advance
In Android view under Gradle Scrips, change two files, then re-sync gradle.
build.grade (Project):
classpath("com.android.tools.build:gradle:4.0.1")
gradle-wrapper.properties:
distributionUrl=https\://services.gradle.org/distributions/gradle-6.2-all.zip
I just encountered the same issue and solved it using the above fix. You may find this thread useful as well: Android Support plugin for IntelliJ IDEA (or Android Studio) cannot open this project
Anyone have any ideas why this is happening? In Windows, when I right-click on the root of my project, I go to New -> Module. This is what I am shown
It used to be a lot more simpler and actually auto-generate a proper Android Module, complete with directories.
I have the latest version of Android Studio installed. Here is the version I have.
I was expecting to see something along the lines of the following:
Problem cannot be reproduced in the latest Android Studio 2.2.1 Canary that was announced today at Google I/O.
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.
With the release of Android Studio 1.0 (AS) i want to migrate from Eclipse. Generally I need no other library then libpd (PureData) for Audio synthesis. The Problem is, that libpd for android is geared to the needs of Eclipse. So in Eclipse everything is working as expected.
The only information I could found was that: Using libpd in Android Studio So I know libpd and Android Studio could work together but here are maybe some other problems.
I started to generate a new simple project (MinSDK 10 - CompileSDK 21 - BuildTools 21.1.2) just with a blank activity. I can deploy this simple app to my Nexus and everything is fine.
Then I import :PDCore and :AndroidMidi as Module into my AS project and I get the Gradle build-error: Error:The SDK Build Tools revision (17.0.0) is too low for project ':PdCore'. Minimum required is 19.1.0
I installed API 19 and Build Tools version 19.1 via the SDK Manager but that's not solving my problem.
I changed the buildToolsVersion of the apps build.gradle file to "19.1.0" but that's not solving my problem.
Any advices to get Gradle working probably?
Maybe anyone got a sample Android Studio project with libpd to share?
Thanks in advance!
FYI: I wrote some posts regarding migrating to Android Studio using libpd. Take a look here:
http://www.journal.deviantdev.com/using-libpd-with-android-studio/
http://www.journal.deviantdev.com/update-using-libpd-with-android-studio/
http://www.journal.deviantdev.com/sample-libpd-android-studio/
You have to change the build.gradle of the :PDCore and :AndroidMidi modules. At the moment they are using 17, update the BuildTools to the newest version (21.1.2). This should solve your problem.
I created a fork of the libpd-for-android and migrated it to Android Studio. You can clone it and open it in Android Studio as a 'Non Android Studio Project'. This worked very nicely for me and you can also now created an .aar file and use it in your Android App ( instead of copying the whole code or using git submodules):
https://github.com/tkirshboim/pd-for-android
I am having issue similar to here.
I upgraded from cordova 3.1 to 3.3 because I wanted to use the remote debugging offered in 3.3 and androind 4.4 but now all the JAVA packages are broken for an unknown reason.
having just very basic skill in java I have no idea what is going on.
In cordova 3.3 the cordova api is no more in a jar but in a separate project.
If not already done, do cordova platform android
Then in eclipse re-do "import existing android project into workspace" and you should a second project named CordovaLib.
If cordova-3.1.jar is still in the libs folder, remove it.