Questions tagged [android-studio-3.6.1]

For questions related to the usage and features that are specific to version 3.6.1 of Android Studio - the official IDE targeted at Android development. When using this tag also include the more generic [android-studio] tag. Do NOT use this tag for questions about programming for Android in general; instead use the [android] tag.

21 questions
11
votes
10 answers

How to fix INSTALL_FAILED_INVALID_APK error in Android Studio?

I have recently updated my Android Studio to 3.6.1, thereby also updating gradle plugin to 3.6.1 and the gradle wrapper to 5.6.4 When running the debug build, I keep getting this error Install failed: The application could not be installed:…
6
votes
1 answer

Why does args classes not generating for navigation graph fragments?

I am using navigation-components in my android project.I have enabled Gradle's type safe args plugin here is my build.gradle(app) file. apply plugin: 'com.android.application' apply plugin: "androidx.navigation.safeargs" apply plugin:…
6
votes
2 answers

Android studio preview not shown

The following classes could not be instantiated: androidx.fragment.app.FragmentContainerView (Open Class, Show Exception, Clear Cache) Tip: Use View.isInEditMode() in your custom views to skip code or show sample data when shown in the IDE. If…
5
votes
4 answers

ANDROID_SDK_ROOT=undefined (recommended setting) while building ionic app using Cordova for Android device

I am trying to build an ionic app for Android device with Cordova using the below command from VSCode. ionic cordova build android --prod --release But I'm getting this error: cordova.cmd build android --release Checking Java JDK and Android SDK…
Tanmay
  • 1,123
  • 1
  • 10
  • 20
4
votes
4 answers

Expected ResolvedDependencyResult but found DefaultUnresolvedDependencyResult when trying to sync

I am using Android Studio 3.6.1 and Gradle 6.3-all. I tried to sync my project and got the following error: Expected org.gradle.api.artifacts.result.ResolvedDependencyResult but found …
udarts
  • 745
  • 1
  • 8
  • 23
4
votes
2 answers

How to fix java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/common/R$string in android studio 3.6.1?

I have updated android studio 3.6.1 and com.google.gms:google-services to 4.3.3 and all firebase libraries too updated to latest version. My problem is app is crashing when launching and showing the below logs. How to solve it? Help is much…
The Bala
  • 1,313
  • 1
  • 15
  • 23
2
votes
0 answers

Problem when creating a new project in android studio 3.6.3

Problem when creating a new project in android studio 3.6.3 10:10 PM Unsupported Modules Detected: Compilation is not supported for following modules: app. Unfortunately you can't have non-Gradle Java modules and Android-Gradle modules in one…
2
votes
1 answer

AbsSavedState$1 cannot be cast to android.widget.ScrollView$SavedState

I am using navigation components in my Android Project.I am using One Activity model and following this model I have 1 Base Activity and the rest are all Fragments. My problem comes on pressing the back button when i have to move to back to a…
2
votes
0 answers

How to get rid of error : " java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: AAPT2 error"

What I did: I'm using ShimmerAndroidAPI by importing via a zip file in Android Studio 3.6.1. Build failed with one error as java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: AAPT2 error: check…
Sachz
  • 391
  • 5
  • 21
1
vote
1 answer

No errror shown in android studio but still setOnClickListener works only on one button while on other button it does not work

My java code: public class StartActivity extends AppCompatActivity { private Button mRegBtn; private Button mLoginBtn; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); …
1
vote
2 answers

Android studio after updates does not see connected devices

After updates to Android Studio 3.6.1 studio does not see connected devices, but in adb devices the debugger also stopped working also do not work: adb kill-server adb start-server I tried using the emulator, but the debugger in it also does…
serg3z
  • 1,852
  • 12
  • 28
1
vote
1 answer

Batch Drawable Import in android studio crashes studio

When importing drawable using batch drawable importer plugin, studio crashes and the drawable is not being created. Using Android Studio 3.6.1 distributionUrl=https://services.gradle.org/distributions/gradle-5.6.4-all.zip Before it was working…
Abraham Mathew
  • 2,029
  • 3
  • 21
  • 42
1
vote
2 answers

error flutter clean - windows-x64/font-subset tool download failed

I can't use anymore flutter clean or doctor in command line in Android Studio 3.6.1. When I try I have this message : Downloading windows-x64/font-subset tools... Download failed. URL:…
0
votes
1 answer

How to know which contacts from phone use our app

I am working on a chat app with kotlin language and I am trying to load all the contacts which are presently on the users phone. I am saving their phone numbers in my database but I also want the users to know that which contacts are using this app…
0
votes
1 answer

Android Studio Quickboot/Snapshot not supported error?

I am Facing this error recently. Everything was fine i was learning android studio and suddenly out of nowhere this hit me up. ****Emulator: Warning: Quick Boot / Snapshots not supported on this machine. A CPU with EPT + UG features is currently…
1
2