I have updated Android Studio to the various 2.3 beta versions and finally RC1. When opening my existing projects, Studio offered to update them to Gradle 2.3.0-rc1 and then displays incompatibility within my wearable Gradle script.
For verification I have imported the SDK sample project "GridViewPager" and got the same problem, Any idea on how to fix this or should it just be ignored?
Incompatibility message for unmodified SDK sample:
Related
I'm facing problem with the latest version of Android Studio which is 3.6.1. I have a project which was develop using Android Studio 2.1.2 and now I decide to switch to use the latest version. After I update my project file to latest version follow the instruction of the Android Studio, I cannot sync my gradle. Here is the error I'm facing
Try 'import' rather than 'open' old projects when using any latest version of Android Studio. If it still fails, perhaps create a new project and port the existing codes over. The versions are too far apart from 2.1.2 to now 3.6.1.
Change the jdk Version to 9.0.4
This worked for me.
I am trying update latest gradle android plugin. I have tried with '3.0.0-alpha1' initially and now I am using'3.0.0-alpha3'.
With '3.0.0-alpha1' version, I got an error 'not found' and after that I switched to '3.0.0-alpha3', with that I got below error.
Error :- 'getMainOutputFile is no longer supported. Use getOutputFileName if you need to determine the file name of the output'.
I fixed that error also.
But , I just want to what is the difference between '3.0.0-alpha1' and '3.0.0-alpha3', Thanks in advance.
The best info I could find was Android Studio 3.0 Canary 3 is now available
We have just released Android Studio 3.0 Canary 3 to the Canary and Dev Channels. The Android Gradle Plugin 3.0.0-alpha3 was also released through maven.google.com. This release has fixes to Gradle, Kotlin, and many other fixes. We continue to fix bugs in all areas of Studio 3.0 as we stabilize our features, so please continue to pass on feedback.
And from Android Studio 3.0 Canary 2 is now available
We have just released Android Studio 3.0 Canary 2 to the Canary and Dev channels. The Android Gradle Plugin 3.0.0-alpha2 was also released through maven.google.com.
This release includes fixes focused on:
Kotlin support
APK Analyzer
Android Profilers
Android Instant Apps
Android Gradle plugin
Native / C++ Issues
and general bug fixes
You might try searching the issue tracker for your specific issues too.
Can anybody provide me with the solution as I am trying to update my Android studio 2.2.3 to 2.3.1. While updating its shows following error and not allow me to update.
Thank you
Plugin web page clearly states on the bottom that the plugin is incompatible with Android Gradle Plugin from Android Studio above 2.2 versions.
Android Gradle Metrics
Your alternatives by the moment are:
Disable Android Gradle Metrics plugin (it will allow you to upgrade to Android Studio 2.3)
Keep Android Studio on 2.2
I have an error i.e. error(5,0) Invalid revision:22.0.c3 when i do Gradle project sync and it fails by showing this message what should i do now I have android studio 1.2.2
Rather than trying to fix something in an outdated version. Upgrade your Android studio to the latest version. 2.1 as of today.
Old versions of android studio tend to have problems with gradle sync/build. You should upgrade your Android studio to v2.1 and try again. The problem you are facing will most probable eliminate after the upgrade.
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