android-studio

Android kotlin onTouchListener wants me to override performClick()

半世苍凉 提交于 2020-04-13 06:14:40
问题 I'm trying to get rid of a warning where Android Studio wants my onTouchListener to override performClick which I do, but the warning remains. draggableBar!!.setOnTouchListener(View.OnTouchListener { view, motionEvent -> when (motionEvent.getAction()) { MotionEvent.ACTION_DOWN -> { } MotionEvent.ACTION_UP -> { view.performClick() } } return@OnTouchListener true }) Could this be an Android Studio bug or am I doing something wrong? 回答1: Okay, I have the same problem but i fixed it by overriding

Expecting 'android:screenOrientation=“unspecified”' or '“fullSensor”' for this activity

删除回忆录丶 提交于 2020-04-12 07:43:11
问题 I upgraded my Android Studio to 3.6.0. Now, I get the following error in my Manifest.xml file. Expecting 'android:screenOrientation="unspecified"' or '"fullSensor"' for this activity so the user can use the application in any orientation and provide a great experience on Chrome OS devices. Should I convert it to "fullSensor"? How can I get rid of this problem? Orientation of my activities is portrait . I want to keep using portrait orientation in my activities. 回答1: This is a kind of warning

Expecting 'android:screenOrientation=“unspecified”' or '“fullSensor”' for this activity

…衆ロ難τιáo~ 提交于 2020-04-12 07:43:09
问题 I upgraded my Android Studio to 3.6.0. Now, I get the following error in my Manifest.xml file. Expecting 'android:screenOrientation="unspecified"' or '"fullSensor"' for this activity so the user can use the application in any orientation and provide a great experience on Chrome OS devices. Should I convert it to "fullSensor"? How can I get rid of this problem? Orientation of my activities is portrait . I want to keep using portrait orientation in my activities. 回答1: This is a kind of warning

Unknown failure (UnsatisfiedLinkError) installing apk via Android Studio 2.3.3 after upgrade from 2.3

旧巷老猫 提交于 2020-04-11 18:16:46
问题 I was running Android Studio 2.3 2 days ago and everything with my project was working perfectly. Installs were fine and there no warnings let alone errors. When I did the upgrade from 2.3 to 2.3.3 Android Studio recommended the gradle, platform tools and build tools upgrade also. I did all of them and now when trying to deploy my app on the same device, it fails. ** observations ** I have 3 machines in my lab. Two of them are running 2.2.2 and have no issues still installing the app on the

Unknown failure (UnsatisfiedLinkError) installing apk via Android Studio 2.3.3 after upgrade from 2.3

一笑奈何 提交于 2020-04-11 18:16:21
问题 I was running Android Studio 2.3 2 days ago and everything with my project was working perfectly. Installs were fine and there no warnings let alone errors. When I did the upgrade from 2.3 to 2.3.3 Android Studio recommended the gradle, platform tools and build tools upgrade also. I did all of them and now when trying to deploy my app on the same device, it fails. ** observations ** I have 3 machines in my lab. Two of them are running 2.2.2 and have no issues still installing the app on the

Android Studio 3.6.1 with Gradle Plugin Version 3.6.1 and Gradle Version 5.6.4 not working

吃可爱长大的小学妹 提交于 2020-04-10 05:06:50
问题 My application is working very well. I have just updated Android Studio 3.6.1 , After updating Android Studio I got this dialog and I am going to update the version of the Gradle Plugin as below. After updating, My application getting crashed and getting the following errors. java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/common/R$string; at com.google.android.gms.common.internal.StringResourceValueReader.<init>(Unknown Source:4) at com.google.firebase

Android Studio 3.6.1 with Gradle Plugin Version 3.6.1 and Gradle Version 5.6.4 not working

纵饮孤独 提交于 2020-04-10 05:04:13
问题 My application is working very well. I have just updated Android Studio 3.6.1 , After updating Android Studio I got this dialog and I am going to update the version of the Gradle Plugin as below. After updating, My application getting crashed and getting the following errors. java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/common/R$string; at com.google.android.gms.common.internal.StringResourceValueReader.<init>(Unknown Source:4) at com.google.firebase

App crashes during run-time after updating to Android Studio 3.6

半世苍凉 提交于 2020-04-09 07:48:45
问题 I already tried Invalidating caches, cleaning the project, re-installing the app. I'm not using data binding. I'm using Realm plugin io.realm:realm-gradle-plugin:5.3.1 Here's some relevant info from build.gradle : compileSdkVersion 29 buildToolsVersion 29.0.3 implementation "androidx.appcompat:appcompat:1.1.0" Android Gradle plugin: 3.6.0 Gradle: 5.6.4 This is the log: java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/appcompat/R$drawable; at androidx.appcompat.widget

App crashes during run-time after updating to Android Studio 3.6

寵の児 提交于 2020-04-09 07:46:57
问题 I already tried Invalidating caches, cleaning the project, re-installing the app. I'm not using data binding. I'm using Realm plugin io.realm:realm-gradle-plugin:5.3.1 Here's some relevant info from build.gradle : compileSdkVersion 29 buildToolsVersion 29.0.3 implementation "androidx.appcompat:appcompat:1.1.0" Android Gradle plugin: 3.6.0 Gradle: 5.6.4 This is the log: java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/appcompat/R$drawable; at androidx.appcompat.widget

Android Studio I keep getting Gradle error “The process cannot access the file because it is being used by another process”

梦想的初衷 提交于 2020-04-09 05:24:23
问题 I can import a sample app project, try to build it and I keep getting this error. Not always the same file but a new temp file each time. I've tried several different samples. I've been programming for 30+ years and feel completely clueless. Only clue seems to be the Windows Task Manager shows 99% to 100% CPU usage when it gives the error and ends the build. 回答1: Do This File -> Invalidate Caches / Restart.. -> Invalidate/ Restart 回答2: Just clean the project and have a run ! It would work ...