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
32
votes
14 answers

Could not resolve com.android.support:appcompat-v7:26.1.0 in Android Studio new project

I know about this questions: Failed to resolve: com.android.support:cardview-v7:26.0.0 android Could not resolve com.android.support:appcompat-v7:26.1.0 [duplicate] And I've read this documentations: Migrate to Android Plugin for Gradle…
Ghasem
  • 14,455
  • 21
  • 138
  • 171
32
votes
7 answers

Failed to resolve: android.arch.lifecycle:extensions:1.0.0-alpha1 android studio 3.0

I am building a project in android studio 3.0 with android plugin 'com.android.tools.build:gradle:3.0.0-alpha1' and gradle version gradle-4.0-milestone-1-all.zip. Used maven repo as well: maven { url 'https://maven.google.com' …
30
votes
2 answers

Debugging C++ library with Android Studio

I'm working on an Android project which uses a Java class that is a wrapper on a C++ library. The C++ library is a company internal library and we have access to its source code, but in the Android project it is only dynamically linked, so it is…
29
votes
4 answers

How to find unused flutter classes in Android Studio or Visual Studio Code

Because rapid change in app requirement from client, I have nearly 200 dart files, and many of them are unused. Is there any way for me to find unused classes except resorting to manually search one by one? In Android Studio, I can find java or…
Dika
  • 2,213
  • 4
  • 33
  • 49
29
votes
5 answers

Can't rename resource (layout) files (Android Studio 3.0 Beta 3 is installed)

Beta 3 doesn't allow to rename resource files such as layout files. It does show the renaming dialog, but when trying to apply changes it reads the following error message: Refactoring cannot be performed File .../myapplication/R.java is…
Roman
  • 502
  • 7
  • 17
29
votes
2 answers

Android profiler not supported for Kitkat devices/google glass in android studio 3.0

From android studio 3.0 Android Monitor turned to Android profiler. But, when using google glass device or other android kitkat devices it's showing below message in android profiler window: Device not supported. Android profiler requires a device…
0xAliHn
  • 18,390
  • 23
  • 91
  • 111
29
votes
4 answers

Android Studio 3.0 : canary 6 : android.content.res.Resources$NotFoundException inside Launching activity

I update android-studio 3.0 from canary 5 to canary 6 and suddenly My app gives crash on KitKat(API 19) with below stacktrace. The Main2Activity.java:10 line is the first line in my activity onCreate() method. 07-11 13:00:39.523…
nilesh
  • 519
  • 4
  • 17
28
votes
5 answers

error: cannot find symbol class for add kotlin class into java class in android studio 3.0 stable

i use android studio 3.0 and some old java class Convert Java to Kotlin. after that Kotlin class cant import in java class! in below you can see my gradle and a picture of my error. module build.grade buildscript { repositories { …
Mahdi Azadbar
  • 1,330
  • 3
  • 17
  • 24
28
votes
10 answers

Android SDK missing with Android Studio 3

I've just downloaded Android Studio 3 for Windows from the official website, but when it starts, it displays an error message about a missing Android SDK: When I click that link, it just redirects to the same official website. There isn't a…
Attila Tanyi
  • 4,904
  • 5
  • 27
  • 34
28
votes
7 answers

Missing project.gradle in Android View

In Android Studio, project.gradle file is not show when in Android View, but is when in Project view Android View Project View How can I fix this ??
28
votes
3 answers

RxJavaPlugins Error Didn't find class "com.google.devtools.build.android.desugar.runtime.ThrowableExtension"

After upgrading Android Studio 3.0 Beta 1 getting the following error. When I downgraded the error disappeared. Studio Build: Android Studio 3.0 Beta 1 Version of Gradle Plugin: 'com.android.tools.build:gradle:3.0.0-beta1' Version of…
Bulu
  • 1,351
  • 3
  • 16
  • 37
27
votes
2 answers

"Execution of compression failed" error when building project in Android Studio 3.1

I'm trying to build https://github.com/neural-nuts/Cam2Caption in Android Studio 3.1 Preview, but either I use very old build.gradle, or it dies with Error:Execution failed for task ':Application:packageDebug'. Execution of compression failed. this…
Benjamin H
  • 5,164
  • 6
  • 34
  • 42
27
votes
2 answers

Android Studio 3.0 Canary 1 GRPC error

After I upgraded to Android Studio 3.0 Canary 1, the logcat tab in the Android Studio don't work properly. It continuously output the following error log. I don't know what's wrong. 05-19 18:05:18.676 10029-10072/com.example.chansoncc.bodypractice…
Chanson
  • 411
  • 4
  • 8
26
votes
2 answers

Could not find method test() for arguments on Android studio project

In my Android application, I want exclude some test cases in a package so that I used test task in build.gradle file. for example: apply plugin: 'com.android.library' test{ exclude '**/calltest/Summary.class' } If sync the project I got…
M.A.Murali
  • 9,988
  • 36
  • 105
  • 182
25
votes
0 answers

Android Studio CPU Profiler - start recording an app launch

I want to get a method trace while cold starting my app. According to CPU Profiler docs, I need to click on the Record button on the CPU Profiler to start a method trace recording, however I want this recording on the app from the instant the new…
marmor
  • 27,641
  • 11
  • 107
  • 150