android-studio

How to get the value of a child node of a json array

梦想与她 提交于 2020-03-21 10:50:07
问题 please i am having some issues parsing a list of data form the this link(https://gnews.io/api/v3/top-news?&token=dd21eb88599ccb3411eaad9b314cde23) i am able to get the data from the json array(articles) but how can i get the data from the josn array(sources) private void getWebApiData() { String WebDataUrl = "https://gnews.io/api/v3/top-news?&token=dd21eb88599ccb3411eaad9b314cde23"; new AsyncHttpTask.execute(WebDataUrl); } @SuppressLint("StaticFieldLeak") public class AsyncHttpTask extends

Android Studio can't find property XMLConstants.ACCESS_EXTERNAL_DTD

若如初见. 提交于 2020-03-21 05:18:25
问题 I'm having a very similar issue to this post - Java and Xerces: can't find property XMLConstants.ACCESS_EXTERNAL_DTD - but with working on Android Studio IDE. I'm also trying to fix the same issue about disabling XML external entity (XXE) processing that gets raised as a vulnerability in our SonarCloud analysis (see: https://sonarcloud.io/project/issues?id=org.digitalcampus.mobile.learning&open=AW3ezGnx-dJmagWAiKPH&resolved=false&types=VULNERABILITY). As far as I can tell, I have the most

How to generate signed APKs for separate modules in Android Studio?

て烟熏妆下的殇ゞ 提交于 2020-03-20 21:14:56
问题 My project having 3 modules include ':app' include ':videograbber' include ':audiograbber' Now I want to generate Signed APK for module Videograbber When I used Generate Signed APK (app bundle) in Android Studio , It directly generating for 'app' without asking any selection screens I don't know how to generate for other modules I read this question : Android Studio: Multiple APKs for Multiple Modules But it only have CLI based solution . I need to do it via studio Please help me 回答1: You

Installation failed since app's minSdkVersion is newer than device's API level

喜夏-厌秋 提交于 2020-03-19 05:10:40
问题 Here is my gradle settings. ext { android_compile_version = 26 android_version = '26.0.1' android_min_sdk_version =15 appcompat_library_version = '25.2.0' support_library_version = '25.2.0' gms_library_version = '11.0.4' } this is define in my project.gradle file and apply plugin: 'com.android.application' android { compileSdkVersion android_compile_version buildToolsVersion android_version defaultConfig { applicationId "com.xxasda.stickman" minSdkVersion android_min_sdk_version

Getting error says - “Entry name 'res/layout/test_toolbar.xml' collided” while creating signed apk

穿精又带淫゛_ 提交于 2020-03-18 11:47:05
问题 I have updated my android studio from 3.5.x to 3.6 today and getting error while generating signed apk for build variant showing the following message - Entry name 'res/layout/test_toolbar.xml' collided I don't have any layout named like this one in the whole project at all. I have custom build variant named " stage " and whenever I am trying to build an signed apk, it always fails. I count find any solution yet. Please help me with this issue. Thanks 回答1: I've got the same problem after this

Android Studio unresolved reference. Project compiles

眉间皱痕 提交于 2020-03-18 11:09:41
问题 After upgrading Android Studio, a project with no issues started showing issues in the editor. I have lots of Unresolved Reference errors. Anything under the support libraries (support-v4, support-v7). In the screen capture above, anything showing in red isn't resolving and showing as an error. I am also using Lifecycle components and Room database. They seem to have issues as well. Looks like interfaces can be found but classes can't. For example, in one of my classes using Room , android

Android Studio unresolved reference. Project compiles

回眸只為那壹抹淺笑 提交于 2020-03-18 11:09:23
问题 After upgrading Android Studio, a project with no issues started showing issues in the editor. I have lots of Unresolved Reference errors. Anything under the support libraries (support-v4, support-v7). In the screen capture above, anything showing in red isn't resolving and showing as an error. I am also using Lifecycle components and Room database. They seem to have issues as well. Looks like interfaces can be found but classes can't. For example, in one of my classes using Room , android

Android Studio unresolved reference. Project compiles

 ̄綄美尐妖づ 提交于 2020-03-18 11:08:50
问题 After upgrading Android Studio, a project with no issues started showing issues in the editor. I have lots of Unresolved Reference errors. Anything under the support libraries (support-v4, support-v7). In the screen capture above, anything showing in red isn't resolving and showing as an error. I am also using Lifecycle components and Room database. They seem to have issues as well. Looks like interfaces can be found but classes can't. For example, in one of my classes using Room , android

Little Pin Icon on Java Class - Android Studio

主宰稳场 提交于 2020-03-18 05:04:26
问题 I don't know what I did... But that's the only file that have like a Pin Icon . What does it mean, and how can I remove it? Thanks! 回答1: That java file class has a Pin because that class is a final class May be you have declared that class as a final class :) To learn more about: Android studio symbols 回答2: what is that ? It is because you have declared that class as final class due to that it is showing that pin icon. How to remove pin icon ? If you remove final keyword than that icon will

Not able to git pull in android studio 3.6

﹥>﹥吖頭↗ 提交于 2020-03-18 04:55:50
问题 I am getting error as mentioned below: Update failed Invocation failed Unexpected Response from Server: Unauthorized java.lang.RuntimeException: Invocation failed Unexpected Response from Server: Unauthorized at org.jetbrains.git4idea.nativessh.GitNativeSshAskPassXmlRpcClient.handleInput(GitNativeSshAskPassXmlRpcClient.java:34) at org.jetbrains.git4idea.nativessh.GitNativeSshAskPassApp.main(GitNativeSshAskPassApp.java:30) Caused by: java.io.IOException: Unexpected Response from Server: