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
8
votes
3 answers

Kotlin and RxJava2 zip operator - None of the following functions can be called with the arguments supplied

I have a problem with writing the .zip Observable in Kotlin using Android Studio 3.0 IDE. Here is my code: internal var updateStringEventsSubject = PublishSubject.create() internal var updateIntEventsSubject =…
K.Os
  • 5,123
  • 8
  • 40
  • 95
8
votes
3 answers

Android Studio 3.0 - Gradle Sync failed for externalNativeBuild

I am getting the following traceback when I am migrating to Android studio 3.0 * What went wrong: Could not determine the dependencies of task ':celltower:compileExternalNativeBuildJavaWithJavac'. > Could not resolve all task dependencies for…
nizam.sp
  • 4,002
  • 5
  • 39
  • 63
8
votes
1 answer

Android Gradle Plugin 3.0.0-alpha4 - not picking .so libraries from local AAR

I'm currently migrating my Android project to the latest version of the Android Gradle Plugin in order to use it with Android Studio 3.0. Everything seems to be working fine except for the fact that .so native libraries files I have in a local AAR…
fasteque
  • 4,309
  • 8
  • 38
  • 50
8
votes
1 answer

Android Studio Preview 3.0 - Application installation failed when running instant app

I am new to running instant app. I have created a new "Hello World" project with instant app support, according to android developer documents. But, when running "instantapp", the following error occurs: I would appreciate it if anyone could help.
mm49307
  • 2,490
  • 2
  • 19
  • 15
8
votes
2 answers

android studio 3.0 Canary 1 : project refresh failed

I tried to load my project in this new Android Studio 3.0 Canary 1. It was running perfectly in my previous Android Studio Version 2.4 preview 7 This is the error I am facing: Error:Could not resolve all dependencies for configuration…
Chintan Soni
  • 24,761
  • 25
  • 106
  • 174
7
votes
0 answers

App is crashing when selecting text of webview in Android 11

Fatal Exception: android.content.res.Resources$NotFoundException: Resource ID #0x20c000e at android.content.res.ResourcesImpl.getValue(ResourcesImpl.java:285) at android.content.res.Resources.getInteger(Resources.java:1297) at…
7
votes
1 answer

Could not resolve com.android.tools.build:gradle:7.0.0

I have just installed android studio but the gradle show's below error. The plugin version is 7.0 and Gradle Version is 7.0.2. Moreover, I tried to download to another gradle version but still can't complete the build and it shows the same error. A…
Abakar
  • 79
  • 1
  • 2
7
votes
1 answer

Android | WiFi adb keeps disconnecting in android studio

It was really strange that adb wifi was disconnecting and debugging via cable is way more unreliable as well as uncomfortable.I did research on internet too. I did try many possible solutions, changing adb drivers, wifi mode and etc. But can't find…
7
votes
2 answers

Project.xml file automatically gets edited and staged for commit in android studio after update

After updating Android Studio to 3.6.1, the following lines get added in Project.xml in .idea folder. This file was…
Sonu Sourav
  • 2,926
  • 2
  • 12
  • 25
7
votes
1 answer

Java codes are converted to XML after restarting Android studio

I faced a real strange scenario when after I restarted my PC due to freezing of windows some of my java codes in the Android Studio were converted to some strange xml codes and all those codes I written were lost! I faced this situation twice, the…
itabdullah
  • 605
  • 1
  • 8
  • 22
7
votes
3 answers

"Deploy as instant app" checkbox is disabled

I've set the in the manifest and now I'd like to build an instant app directly to the emulator, but it seems the checkbox is disabled. Any ideas to why?
AndreiBogdan
  • 10,858
  • 13
  • 58
  • 106
7
votes
2 answers

How to solve multiple instance issue on a work manager?

I have an worker to do a periodical task. and this worker is called in an activity on create. Every time the activity open there is a new instance created and do the same task in same time in multiple times. I called the task like this task = new…
7
votes
1 answer

android studio emulator could not initialize DirectSoundCapture

I just have a basic helloworld app in android studio 3.2 and I am trying to run some emulators to test the app with AVD manager, but the emulator just stucks in google logo and eventually android studio times out and stops trying to attack the app…
Muhammad Touseef
  • 4,357
  • 4
  • 31
  • 75
7
votes
3 answers

Cannot access activity binding android

I have a layout file called activity_suggestions. I am using databinding in it. Hence the file ActivitySuggestionsBinding got generated. The project compiles successfully. But when I try to run the project, I get this error e: error: cannot access…
Ashwin
  • 12,691
  • 31
  • 118
  • 190
7
votes
0 answers

Android version 7.0 or above create exception android.app.RemoteServiceException:

Android version 7.0 or above create exception when we upload an update of my app crashes will be given android.app.RemoteServiceException: at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1681) at…