android-studio

Facebook like and comment not working on Android webview

落爺英雄遲暮 提交于 2020-03-16 08:24:51
问题 I have tried webview with Android studio and FB share and other social media share buttons are working fine. But FB direct like and comment button on my website is not working. When I press like button I can see white screen with left top screen number "1". Please kindly help me. MainActivity.Java package com.example.neermaicom; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.view.WindowManager;

Android Emulator Error in windows

╄→尐↘猪︶ㄣ 提交于 2020-03-16 07:43:49
问题 I installed android studio 2.0 on my windows 7 ultimate, and I installed all the packages required by the android also the HAXM package is also installed. When I tried to run the emulator, it didn't run, a message popped up that said vt-x should be enabled in bios security settings, this is the pic. I went in the bios settings but the Virtualization was already enabled over there, but when I installed a software called speccy to know about what all is included in my computer and I found in

Android Emulator Error in windows

我是研究僧i 提交于 2020-03-16 07:43:09
问题 I installed android studio 2.0 on my windows 7 ultimate, and I installed all the packages required by the android also the HAXM package is also installed. When I tried to run the emulator, it didn't run, a message popped up that said vt-x should be enabled in bios security settings, this is the pic. I went in the bios settings but the Virtualization was already enabled over there, but when I installed a software called speccy to know about what all is included in my computer and I found in

No Cached Version Gradle Plugin Available for offline mode

。_饼干妹妹 提交于 2020-03-16 07:41:11
问题 I haven't used Android Studio in a while, but decided to update everything and create a new project and I get the above error, if I go to Preferences -> Build, Execution, Deployment -> Gradle. There's no option to 'Work Offline' as suggested here among other places No cached version of gradle available for offline mode I've also used the 'Command Shift A' and searched for 'Offline' and I get nothing. Anyway to disable this? 回答1: As per the Android Studio 3.6 release notes: To enable or

Gradle build failed with new import rules

青春壹個敷衍的年華 提交于 2020-03-16 05:55:44
问题 I met an error after I updated android studio to version 3.6. When I tried to import Scenceform asset, it shows a warning in the picture below, whatever I click, it will return java.lang.RuntimeException: java.lang.NoSuchMethodError: com.android.tools.idea.templates.recipe.RecipeExecutor.append(Ljava/io/File;Ljava/io/File;) How can I fix this? 回答1: This appears to be an issue with Android Studio 3.6 at the time of writing - see the issue here: https://github.com/google-ar/sceneform-android

Gradle build failed with new import rules

心不动则不痛 提交于 2020-03-16 05:53:16
问题 I met an error after I updated android studio to version 3.6. When I tried to import Scenceform asset, it shows a warning in the picture below, whatever I click, it will return java.lang.RuntimeException: java.lang.NoSuchMethodError: com.android.tools.idea.templates.recipe.RecipeExecutor.append(Ljava/io/File;Ljava/io/File;) How can I fix this? 回答1: This appears to be an issue with Android Studio 3.6 at the time of writing - see the issue here: https://github.com/google-ar/sceneform-android

Gradle build failed with new import rules

邮差的信 提交于 2020-03-16 05:53:07
问题 I met an error after I updated android studio to version 3.6. When I tried to import Scenceform asset, it shows a warning in the picture below, whatever I click, it will return java.lang.RuntimeException: java.lang.NoSuchMethodError: com.android.tools.idea.templates.recipe.RecipeExecutor.append(Ljava/io/File;Ljava/io/File;) How can I fix this? 回答1: This appears to be an issue with Android Studio 3.6 at the time of writing - see the issue here: https://github.com/google-ar/sceneform-android

Cannot compile a signed APK in Android Studio 3.3

亡梦爱人 提交于 2020-03-16 05:38:28
问题 After updating to AS 3.3, there seems to be a bug in the "Generate Signed Bundle/APK" dialog. After choosing Bundle or APK format, moving to the next page and setting the module/keystore pass, I can't move by pressing next because I get this popup: Please specify a destination folder for the signed apk There is no editbox to specify a destination folder. Anyone else experienced this? I want to know if it's because of the material theme plugin hiding an extra editbox. Otherwise I'll file a bug

How to get read external storage permissions?

一个人想着一个人 提交于 2020-03-13 07:56:00
问题 I'm developing an mp3 player application for android and I'm getting an error related to user permissions(READ_EXTERNAL_STORAGE) This is my code where I ask for permissions: int permissionCheck = ContextCompat.checkSelfPermission(PlayListActivity.this, Manifest.permission.READ_EXTERNAL_STORAGE); if (ContextCompat.checkSelfPermission(PlayListActivity.this, Manifest.permission.READ_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) { // OPCIONAL(explicaciones de poque pedimos los permisos)

Disable Gradle Offline mode in Android Studio 3.6

时光总嘲笑我的痴心妄想 提交于 2020-03-12 04:40:30
问题 I updated my Android Studio application to the latest version on Mac to Android Studio 3.6, Build: #AI-192.7142.36.36.6200805 I saw the option to enable offline mode(in the Build output area or so) when the build failed due to Internet connection problems and I did so by clicking the supplied link. Later on, I needed to disable offline mode and I followed the normal steps: Go to Preferences > Build, Execution, Deployment > Gradle. But on the Gradle option in this very build, there was no