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
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
I am using latest version of android studio
and i am open a an older project the android studio not open this project
and always fininshing the gradle while downloading or building it
i have attached the screen shot with this for batter understanding
please help me on this issue these project was build with older android studio like 2.2 and now i am using the latest version which is android 2.3.3 but with this version project was not open properely
android gradle problem the screen shot of the problem
This same thing happened to me, when i was into android. Go to android sdk manager and update whatever it says, and you will good to go.
Even android studio is also trying to do the same thing. but it doesn't show you the progress.
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 new to android programming (I have some knowledge about programming in Java, though). I downloaded Android Studio 1.3.2. I also installed Java 8 (jdk1.8.0_60). Then I installed Android Studio. I was following the tutorial in developer.android.com. I created a new project. But then the Gradle showed me an error.
"Error: Gradle 2.4 requires Java 6 or later to run. Your build is currently configured to use Java 5."
How do I fix this?
File->Other Settings->Default Project Structure
set JDK Location to Java 6 or later there.
Updating the project structure did not work for me. I had to upgrade by Android Studio from 2.0 to 2.2 to get it working. Also, to be safe I did not import settings from my previous version during my initial Studio set-up.
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).