android-studio

Why my Admob Rewarded Video Ad Failed to load again and again?

前提是你 提交于 2020-04-16 05:35:10
问题 I just want to display Rewarded Video Ad by using test id but it failed again and again while loading.Someone can tell me that what I am doing wrong. Here is my Main Activity Kotlin. import android.support.v7.app.AppCompatActivity import android.os.Bundle import android.widget.Toast import com.google.android.gms.ads.AdRequest import com.google.android.gms.ads.MobileAds import com.google.android.gms.ads.reward.RewardItem import com.google.android.gms.ads.reward.RewardedVideoAd import com

Execution failed for task ':app:dataBindingGenBaseClassesDebug'. Error after upgrading to Android Studio 3.2.1

时间秒杀一切 提交于 2020-04-16 05:11:22
问题 I got the error after making the project: FAILURE: Build failed with an exception. What went wrong: Execution failed for task ':app:dataBindingGenBaseClassesDebug'. Parameter 'directory' is not a directory This started after upgrading to Android Studio 3.2.1 Any ideas what this could be? 回答1: The following command worked for me. ./gradlew assembleDebug --rerun-tasks 回答2: I had the same error at build time and it was caused by a binding variable (that declared inside <data></data> with a Java

Execution failed for task ':app:dataBindingGenBaseClassesDebug'. Error after upgrading to Android Studio 3.2.1

坚强是说给别人听的谎言 提交于 2020-04-16 05:10:13
问题 I got the error after making the project: FAILURE: Build failed with an exception. What went wrong: Execution failed for task ':app:dataBindingGenBaseClassesDebug'. Parameter 'directory' is not a directory This started after upgrading to Android Studio 3.2.1 Any ideas what this could be? 回答1: The following command worked for me. ./gradlew assembleDebug --rerun-tasks 回答2: I had the same error at build time and it was caused by a binding variable (that declared inside <data></data> with a Java

Execution failed for task ':app:dataBindingGenBaseClassesDebug'. Error after upgrading to Android Studio 3.2.1

℡╲_俬逩灬. 提交于 2020-04-16 05:09:50
问题 I got the error after making the project: FAILURE: Build failed with an exception. What went wrong: Execution failed for task ':app:dataBindingGenBaseClassesDebug'. Parameter 'directory' is not a directory This started after upgrading to Android Studio 3.2.1 Any ideas what this could be? 回答1: The following command worked for me. ./gradlew assembleDebug --rerun-tasks 回答2: I had the same error at build time and it was caused by a binding variable (that declared inside <data></data> with a Java

Error creating Vector Image Asset: <text> is not supported

感情迁移 提交于 2020-04-16 05:08:29
问题 I created a basic SVG file in illustrator using Line Tool, Eclipse Tool & Text only. The font I used was Century Schoolbook. When I try to configure a vector asset I get the error, is not supported. The preview shows the SVG without the text Am I not suppose to use text on SVG files? Surely that can't be the case? Here's the error: 回答1: At present, Android's vector assets handle a small subset of SVG, mostly focused on paths. It does not appear that it supports text. However, your SVG tool

Error creating Vector Image Asset: <text> is not supported

霸气de小男生 提交于 2020-04-16 05:06:09
问题 I created a basic SVG file in illustrator using Line Tool, Eclipse Tool & Text only. The font I used was Century Schoolbook. When I try to configure a vector asset I get the error, is not supported. The preview shows the SVG without the text Am I not suppose to use text on SVG files? Surely that can't be the case? Here's the error: 回答1: At present, Android's vector assets handle a small subset of SVG, mostly focused on paths. It does not appear that it supports text. However, your SVG tool

Crashlytics had a problem uploading the deobs file

吃可爱长大的小学妹 提交于 2020-04-16 03:44:09
问题 I'm found that crash reports became unreadable because of obfuscation. From crashlytics log i'm found exception [DEBUG] (Execution worker for ':') com.crashlytics - POST file: /home/...-875c- 4f7e9d519d53.zip to URL: https://cm.crashlytics.com/api/v3/platforms/android/code_mappings [DEBUG] (Execution worker for ':') com.crashlytics - Crashlytics using custom proxy settings: :80 [WARN] (Execution worker for ':') com.crashlytics - Crashlytics had a problem uploading the deobs file. Please check

Crashlytics had a problem uploading the deobs file

纵饮孤独 提交于 2020-04-16 03:43:25
问题 I'm found that crash reports became unreadable because of obfuscation. From crashlytics log i'm found exception [DEBUG] (Execution worker for ':') com.crashlytics - POST file: /home/...-875c- 4f7e9d519d53.zip to URL: https://cm.crashlytics.com/api/v3/platforms/android/code_mappings [DEBUG] (Execution worker for ':') com.crashlytics - Crashlytics using custom proxy settings: :80 [WARN] (Execution worker for ':') com.crashlytics - Crashlytics had a problem uploading the deobs file. Please check

Not able to compile exoplayer in Android Studio

吃可爱长大的小学妹 提交于 2020-04-16 02:47:05
问题 I have imported exoplayer using jcenter but am getting error as : Error:(46, 13) Failed to resolve: com.google.android.exoplayer:exoplayer:r2.3.0 Following is my code of gradles: build.gradle(Project) buildscript{ repositories { jcenter() /* mavenCentral()*/ } dependencies{ classpath 'com.android.tools.build:gradle:2.2.3' classpath 'com.android.tools.build:gradle:1.0.0-rc1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files }

Enable Android Studio spell checking on language specific strings.xml files

*爱你&永不变心* 提交于 2020-04-13 06:18:09
问题 In Android Studio, spellchecking seems to be disabled for language specific strings.xml files (and I understand why it would be disabled by default). But is it possible to enable it, to check values, for a couple of those files? ("fr/strings.xml" for example), or at least run it on demand. 回答1: To avoid or to enforce spellchecking you could add tools:locale to the <resources> tag in your string xml. <resources xmlns:tools="http://schemas.android.com/tools" tools:locale="en"> This tells Lint