Questions tagged [android-studio-3.0]

Use for questions about using Android Studio, an official IDE targeted at Android development. Do NOT use for questions about programming for Android in general; instead use [android].

Android Studio is the official IDE for Android development, and includes everything you need to build Android apps.

For more updates about Android Studio 3.0 check out these videos

  1. AS 3.0
  2. Java 8 support
  3. The new Profiler
1629 questions
42
votes
10 answers

Android Studio-- Cause: error=86, Bad CPU type in executable

Android Studio throws an error while building the project. the error is : Cause: error=86, Bad CPU type in executable. The detail error: Bad CPU type in executable --> Can not run command xxx/aapt
Michael Yang
  • 1,403
  • 2
  • 18
  • 27
42
votes
9 answers

Can't start Android Studio Layout Inspector: "Unexpected error: empty view hierarchy"

Can't seem to launch Layout Inspector on Android Studio 3.0 (Canary 3) When connected to my device and app running, choosing Tools > Android > Layout Inspector comes up with the following error dialog: "Error obtaining view hierarchy: Unexpected…
Marchy
  • 3,334
  • 5
  • 37
  • 27
41
votes
22 answers

Unable to Merge Dex - Android Studio 3.0

When I updated my Android Studio to 3.0 in the stable channel and ran the project, I started getting the below error. Error:Execution failed for task…
user8583580
40
votes
3 answers

Does Android Studio 3 support Java 9 for Android development? If so, what features of Java 9 are supported?

I'm going to install Android Studio 3 in order to develop an Android application. I'd like to know if it is possible to use Java 9 for Android development? If so, does it support all of the Java 9 features?
AhmadReza Payan
  • 2,171
  • 1
  • 23
  • 33
40
votes
1 answer

Gradle dependency configuration : implementation vs api vs runtimeonly vs compileonly

Unable to understand the latest gradle dependency configurations which are introduced in Android Studio 3.0 i.e. implementation, api , compileonly and runtimeonly.
LMT
  • 439
  • 1
  • 4
  • 5
40
votes
11 answers

Unable to resolve dependency Android Studio 3.0

It's good to have a Updated Android Studio 3.0. But I am facing a problem with Android Studio 3.0, I just created a new project in Android Studio 3.0. Then I got some error I solved these by changing dependencies to latest version and issues…
UltimateDevil
  • 2,807
  • 2
  • 18
  • 31
39
votes
9 answers

com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex - Android Studio 3.0 stable

I made: In "Settings"->"Android SDK"->"SDK Tools" Google Play services is checked and installed v.46 Removed folder /.gradle "Clean Project" "Rebuild Project Error is: Error:Execution failed for task…
Nauman Shafique
  • 433
  • 1
  • 6
  • 15
38
votes
4 answers

W/FirebaseMessaging: Missing Default Notification Channel metadata in AndroidManifest. Default value will be used

Our app now has targetSdkVersion 26 (Android 8) and the app uses FCM push notifications. When app is in the foreground state the push notification is working well. The issue appears while clicking the notification when the app is not in the…
38
votes
2 answers

Can't build project with Android Studio 3.0 + DataBinding + Kotlin

I have a huge project with databinding, kotlin, dagger. I spent a few days trying to build it using several stackoverflow's solutions and decided to ask it personally. I assume some of third party libraries uses databinding because adding this line…
Dennis Zinkovski
  • 1,821
  • 3
  • 25
  • 42
37
votes
7 answers

failed linking references after update of gradle Android Studio

I got this error after update my Gradle (I have also added maven{jitpack.io} and geofirestore dependencies at the same of updating Gradle) : Android resource linking failed Output: …
Milvintsiss
  • 1,420
  • 1
  • 18
  • 34
35
votes
3 answers

Android Source Generator: Error: Can't find bundle for base name messages.AndroidJpsBundle

I previously was using Android Studio v2.3 to Make Module and it was ok. Now I changed to Android Studio v3.0, when I trying to Make Module, it shows the error below: Error:Android Source Generator: Error: Can't find bundle for base name…
vincent
  • 507
  • 2
  • 6
  • 12
35
votes
15 answers

Android Studio 3.0 Canary 2: attribute 'android:versionCode' not found

I've updated Android Studio to the latest canary build and now I can't run my app. Every time when I try to build the project I get the following…
123
  • 545
  • 6
  • 12
34
votes
1 answer

Android Studio 3.0: buildToolsVersion not found in gradle files

I recently installed new stable version of Android Studio (v3.0). Then created a new project and there was not any problem. But saw there is no buildToolsVersion field in the app-level build.gradle file. Even I searched all project files…
34
votes
6 answers

Button onClick attribute is none if activity written in Kotlin

Follow this tutorial: Android - Start Another Activity if I made MainActivity.java button OnClick attribute has the sendMessage() method. But if I made MainActivity.kt button OnClick attribute has nothing to show, just a none. Is this an Android…
Vahid
  • 3,352
  • 2
  • 34
  • 42
33
votes
2 answers

Unexpected auto-formatting of XML layout in Android Studio

I am using AS since 4 years. After last update I observed unexpected auto-formatting of XML layout (while typing and with Code -> Reformat Code too). Here is an example: When I started typing relative layout, it expanded start tag, width property,…