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
7
votes
2 answers

Create different theme for different instances of android studio

I will give my use case first. I have two similar android studio projects which needs to be opened always. Now what happens is, I often make changes in wrong project because there is no easy way to identify which project I'm on by simply looking at…
Slashbin
  • 668
  • 5
  • 15
7
votes
1 answer

Is there a way to wrap code neatly in Android Studio?

I've enabled word wrap in the editor, but it doesn't align to the relevant scope, which looks unnecessarily messy. Here is an example of the automatic behavior: word-wrap-default Here is an example of what I'd like the automatic behavior to…
7
votes
1 answer

AndroidStudio Exception when starting android in a libgdx project

I get an exception when running the android gradle task in Android Studio 3.0.1. My project is build with libgdx. My desktop gradle task runs just perfect. org.gradle.api.tasks.TaskExecutionException: Execution failed for task…
Mewel
  • 1,279
  • 15
  • 21
7
votes
1 answer

Search library dependency in android studio 3.0

After updating to Android Strudio 3.0, I tried adding a library from project structure -> dependencies -> add library , but searching doesn't seems to work, nothing is found. My build.gradle file looks like this buildscript { repositories { …
Bogdan N
  • 73
  • 4
7
votes
1 answer

How do I exclude a directory, like `node_modules` from Android Studio's Open File window?

The Open File window in Android Studio, Command+Shift+O, will search all directories by default, including the node_modules directory. This forces you to have to go through endless common files, like AndroidManifest.xml, before finding the one in…
Joshua Pinter
  • 45,245
  • 23
  • 243
  • 245
7
votes
3 answers

Gradle build error in Android Studio 3.0

Can you please help me to resolve the Gradle build issue in Android 3.0 ? I am new with Android Studio. Here are my configurations in the AS…
Jamil Rahman
  • 345
  • 1
  • 6
  • 18
7
votes
1 answer

Android Studio 3 does not run tests in Spock

I updated Android Studio to version 3 and since then all my spock tests, when in a java module, do not run when trying to run them from inside the application (right click on groovy folder -> Run 'Tests in groovy'). I get a: Class not found:…
7
votes
5 answers

Can't access EditText or other UI components with Kotlin

I'm using Android Studio 3.0 RC2 & Kotlin. When I try to access a UI component the app crashes unless I first write findViewById. I thought Kotlin was supposed to get rid of having to write findViewById line? The UI is a fragment and I'm trying to…
user1184205
  • 863
  • 1
  • 10
  • 23
7
votes
9 answers

DaggerApplicationComponent not compiled

I'm using the latest beta of android studio 3 (currently beta 4), and I can't seem to get it to generate the dagger classes needed. From my side I created an empty project. Then I renamed the activity to match the dagger notes, YourActivity. See…
7
votes
2 answers

Android Studio 3 Kotlin version

On start Android Studio 3 beta 2 i get this message: "Your version of Kotlin runtime in 'kotlin-stdlib-1.1.4-2' library is 1.1.4-2, while plugin version is 1.1.4-release-Studio3.0-3. Runtime library should be updated to avoid compatibility…
fkvestak
  • 539
  • 7
  • 20
7
votes
1 answer

Android Keyboard (AOSP) keeps stopping with Android O emulator

I'm running into this problem when using Android keyboard with Android O emulator. It always gives me the error saying "Android Keyboard (AOSP) has stopped" when I'm trying to press the "?123" button from the Android keyboard, and then the…
laixiaoyuan
  • 175
  • 2
  • 9
6
votes
1 answer

"Chain validation failed" in Android Studio with Firebase

When I try to run the java android Code in debug mode @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); …
Jean-Pierre Mena
  • 131
  • 2
  • 12
6
votes
8 answers

React Native on Android: Unable to determine the current character, it is not a string, number, array, or object

I create a new application and insert a old code, when i build the application this error appears: Script 'C:\Users\nameuser\Desktop\nameapp\node_modules@react-native-community\cli-platform-android\native_modules.gradle' line: 191 What went…
6
votes
3 answers

Trying to run systrace on android device but the resulting html shows an error

Unable to select a master clock domain because no path can be found from "SYSTRACE" to "LINUX_FTRACE_GLOBAL".
JamesWang
  • 61
  • 1
  • 3
6
votes
2 answers

Error Configuration 'compile' is obsolete and has been replaced with 'implementation' and api

Recently I Have updated android studio with build tools and apis. While syncing current project i am getting error like: "Error Configuration 'compile' is obsolete and has been replaced with 'implementation and 'api'. how to fix this error.
Parth
  • 1,908
  • 1
  • 19
  • 37