After updating Android Studio to SDK 28, my app doesn't build anymore. I always get this error, which I don't know what I can do with it:
Android resource linking failed
C:\SDK\projects\EngineersWizard\app\src\main\res\layout\activity_form_beleuchtung.xml:18: error: attribute layout_scrollFlags (aka com.example.ren.engineerswizard:layout_scrollFlags) not found.
C:\SDK\projects\EngineersWizard\app\src\main\res\layout\activity_form_beleuchtung.xml:35: error: resource string/appbar_scrolling_view_behavior (aka com.example.ren.engineerswizard:string/appbar_scrolling_view_behavior) not found.
error: failed linking file resources.
Maybe anybody has an idea?
Android SDK Build-Tools is a component of the Android SDK required for building Android apps. It's installed in the /build-tools/ directory.
You should always keep your Build Tools component updated by downloading the latest version using the Android SDK Manager. If you're using Android plugin for Gradle 3.0.0 or higher, your project automatically uses a default version of the build tools that the plugin specifies. To use a different version of the build tools, specify it using buildToolsVersion in your module's build.gradle, as follows:
android {
buildToolsVersion "29.0.0"
...
}
I've cloned a repository into my computer using Android Studio 3.1.3, this project used Gradle 4.1 so the IDE prompted to update it to 4.4 as the minimum version supported for this (at least following the IDE message) is 4.4.
When I update the distributionUrl gradle version from 4.1 to 4.4 it now says this:
Failed to resolve: com
and when I press in 'Open File' it indicates the error is in this line:
apply plugin: 'com.android.application'
I already made the google() repository go before jcenter() and still the error persists. Did google changed how to use the android plugin in gradle?
In our project we are using an add-on instead of the standard Android SDK.
There is a new version of the add-on, it is in the add-ons folder, listed among the SDKs to compile with, but when we select it, we get an error from gradle saying:
Error: Module 'app' platform 'add-on_name' not found.
Open Android SDK Manager and install all missing platforms.
Our current setup is:
Android Studio 3.0 canary 5
gradle wrapper distributionUrl=https\://services.gradle.org/distributions/gradle-3.5-all.zip
gradle classpath 'com.android.tools.build:gradle:2.3.2'
buildToolsVersion '25.0.3'
I have submitted the issue with the add-on developer, but it seems more like an Android tools/Gradle bug, so I am trying my chances here. It used to work without issues before Gradle 2.0/Android Studio 2.3
Did anybody get this error I've been banging my head for 3 days now trying to get Android Studio with app engine to work (from the Android Studio Event Log):
Plugin Error
Problems found loading plugins:
Plugin "Google App Engine Integration" was not loaded: required plugin "com.intellij.javaee" not installed.
Disable Google App Engine Integration
Open plugin manager
I had the same issue.
Deleting the .AndroidStudioBeta folder in my home directory and reinstalling Android Studio 0.8.9 resolved my issues.
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
}
...
}