It occured three days ago and couldn't find a solution yet. When I tried to run an app on my phone I receive this eror : " Recommended action: Update this project's version of the Android Gradle plugin to one that supports 33, then update this project to use compileSdkVerion of at least 33.
Note that updating a library or application's compileSdkVersion (which
allows newer APIs to be used) can be done separately from updating
targetSdkVersion (which opts the app in to new runtime behavior) and
minSdkVersion (which determines which devices the app can be installed
on)."
I literally tried every kind of update but still couldn't figure it out.
I updated Git VSC plugin , compileSDKversion ,Android Gradle , crated a new project , restarted Android Studio... None of them worked out.
Related
I have an essential plugin that hasn't been updated in a year. I made the mistake of updating flutter, and now, when I try to build, it is telling me about a whole list of plugins that require android 31. Unfortunately, android 31 breaks the one plugin that I must use. Caret notation in the pubspec.yaml is funny because the documentation says it's supposed to choose a version of the package that works with the dependencies, but it's just not doing that.
Run flutter downgrade in command line or reinstall your old version.
Please I am trying to build a small android app with ionic but I downloaded android SDK 5.1.1 .
I wish to deploy to a device that has android version 2.3.3 but it won't even build .
It keeps telling me that the target app is android-22. I want it to build for a lower version like android-8.
Please any help will really be appreciated.
I only want it to be able to build for a lower version
I tried to edit the version in the androidManifest.xml files on my project but still I get errors
->First of all, let`s make sure you have downloaded the plateform for Android 2.2 using Android SDK Manager.
->Set android:minSdkVersion to 8 in androidManifest.xml
->Verify the BuidTarget attribute, since it specifies the development tool of which api to provide you.
->Your problem seems to be the absence of API8 in your SDK.
you might need to change your minSdk in build.gradle
in the app build.gradle file set the min sdk version as 8.
defaultConfig {
applicationId "com.etrade.mobilepro.activity"
minSdkVersion 8
versionCode 87
versionName "4.5"
}
Since the app is not building I guess you don't have that particular sdk.I would suggest downloading the sdk through sdk manager.
This issue is encountered when my Android Studio project is copied by others, but they can'r run it directly.
The error message is failed to find build tools versions XX.X.X.
Then how do they know what the version should be changed for their own system?
Or is there a better way to set the buildToolsVersion "XX.X.X" to widely suit others in build.gradle?
Also the same question for compileSdkVersion, how do I know the version(s) available in my system?
Is there a gradle(not limited) script to find out the available version?
On Linux you'll find your BuildTool Versions on :
$ANDROID_HOME/build-tools/
Look at your build.gradle (Module:<app-name>) file. There should be a buildToolsVersion line in that file. Make sure that you and others have that version of the build tools installed.
Also make sure that the version of build tools is still available form the SDK manager.
I had this issue when working on a friend's project. He was using a version of build tools that I could not get anymore. I think this is because things are updated and replaced.
We fixed this by both installing the most current version of build tools.
I have also ran into this issue when I upgraded Android Studios and the version of build tools was no longer available.
For the compileSdkVersion you can goto Tools > Android > SDK Manager. This will pull up a window that will allow you to manage your compileSdkVersion and your buildToolsVersion.
You can also select the link at the bottom left (Launch Standalone SDK Manager) this will give you a little bit more information.
You can check the available versions from the official android developer's link : https://developer.android.com/studio/releases/build-tools.html
Then choose the corresponding version (generally the latest) based on your compileSdkVersion and targetSdkVersion
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'm getting errors related to an issue with my app having been compiled on an earlier version. In Android Studio I was using 'compileSdkVersion "Google Inc.:Glass Development Kit Sneak Peek:15"' in my build.gradle but after trying to send an app to my device I'm getting:
4277-4277/com.myapp.app E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: com.myapp.app, PID: 4277
java.lang.NoClassDefFoundError: com.google.android.glass.timeline.TimelineManager
compileSdkVersion "Google Inc.:Glass Development Kit Preview:19"
As the release notes say, TimelineManager has been removed. After you change your compileSdkVersion as kurtisnelson pointed out, you'll need to revise your code to create LiveCards directly
I was trying to get this to work in IntelliJ IDEA, and what I ended up doing is going into project structure (⌘+;) and changing the Build target under SDKs to Glass Development Kit Preview (4.4.2):
Note: Make sure build.gradle still has the proper compileSdkVersion value:
"Google Inc.:Glass Development Kit Preview:19"
Upgrade Android Studio to 0.5.5 and set the string to "Google Inc.:Glass Development Kit Preview:19".
There was an issue with IDE not picking up the right JDK even though gradle used the correct version. Google pushed an update earlier today.
Update the Glass Development Kit Preview using the Android SDK Manager. Under Android Platform 4.4.2 you can select it.
Try running a example of this new versión and compare it with your code.
I was also using Android Studio and had terrible luck getting a previously functional Glass app to compile on XE16. I had changed the build.gradle to exactly what kurtisnelson answered here without luck. Android Studio acts like it doesn't see the SDK update.
[edit: Android Studio just got an update to 0.5.5 which fixed this issue]
I ended up switching to the Android Development Tools (ADT) bundle running on Eclipse, and things went smoothly. http://developer.android.com/sdk/installing/bundle.html
Side note: if you're using voice commands, don't forget to add this to your manifest file:
<uses-permission android:name="com.google.android.glass.permission.DEVELOPMENT" />
If your voice command isn't on the pre-approved list of words, you have to add this Development permission to your app. See here for more details: https://developers.google.com/glass/distribute/voice-checklist
To make Gradle happy, you'll need to upgrade a few things, and then modify the build.gradle file located in your app's module.
Upgrade Android Studio to at 0.5.5. You can either use the built in "Check for updates" feature or download it directly.
Open your Android SDK Manager and install the latest version of GDK. It will be under a new folder, 4.4.2, with the title Glass Development Kit Preview.
Open your existing GDK project and edit the inner build.gradle file found in your app's module. For imported projects this would be <project root>/app/build.gradle
Change your compileSdkVersion to 19. It will result in a file that looks something like this:
apply plugin: 'android'
android {
compileSdkVersion 19
buildToolsVersion "19.0.3"
defaultConfig {
minSdkVersion 19
targetSdkVersion 19
}
...
}