android-studio

Android Studio 3.5.2 Project Build Problem because of “Multiple dex files define”

强颜欢笑 提交于 2020-02-06 08:35:32
问题 I recently took over work on an Android Studio project whose active development was stopped 18 months ago, in July 2018. I have been able to build a debug version of the product, but not release. The build is failing on trying to build a new productFlavor that I added today. This is the build error: Multiple dex files define Landroid/support/v13/view/inputmethod/InputConnectionCompat$OnCommitContentListener; After syncing with the gradle in the build.,gradle for module App, new build variants

Unable to resolve dependency

跟風遠走 提交于 2020-02-06 08:24:47
问题 when build , show this error : Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.android.support:appcompat-v7:27.1.1. 回答1: Just add google() under repositories as highlighted in attached picture to your project gradle, as google has move its repositories to maven you have to add this way, hope this helps you!!! or read this official doc Support Library Setup Another nice asnwer by Gabriele Mariotti Using google() as a repository doesn't work 来源: https:/

How can play streaming Video from frame byte array

狂风中的少年 提交于 2020-02-06 07:50:29
问题 Thanks for watching of question and sorry about my english XD (use Android Studio with JAVA) How can i play streaming video from byte array to VideoView or MediaPlayer, i have received byte array from ZeroMQ socket, and byte array content is Frame(size w: 640 h: 360 base64 encoding) ZeroMQ protocol thread code public class ZeromQMessageTask extends AsyncTask<String, Void, String>{ @Override protected String doInBackground(String... strings) { DataOutputStream dataOutputStream = null; try{ ZMQ

Android starting another activity or calling a method from another class (using fragments)

﹥>﹥吖頭↗ 提交于 2020-02-06 05:39:28
问题 I'm trying to call a method from one UI view that exists in a different class. These are two samples combined from the Android Developer site. I'll focus on one view for this question since the others are basically the same thing. In my MainActivity.java, I'm setting up the Drawer navigation, populating the list, etc. I have a total of three fragments, each with their own XML for the UI, and each having their own Java class (extension of a Fragment) to handle their respective onCreateView.

Android Studio won't import packages and @override method automatically for flutter app development

拜拜、爱过 提交于 2020-02-05 07:14:25
问题 Auto completion or auto import packages/override methods in Android Studio for Flutter doesn't work. Every time i need to write the code manually. But while coding with native android or java, it imports packages and override methods automatically. In-fact i configure for auto import/code generation under Settings -> Editor -> Code Style -> Dart -> Code Generation Is there any other process to configure android studio for auto completion ? Or should i use IntelliJ IDEA ? 来源: https:/

Gradle Daemon Android Studio: “Unable to start the daemon process”

大兔子大兔子 提交于 2020-02-05 05:52:06
问题 I am having a problem. I have always developed applications in Android Studio and never had a problems, but now I had the following error: Unable to start the daemon process. This problem might be caused by incorrect configuration of the daemon. For example, an unrecognized jvm option is used. Please refer to the user guide chapter on the daemon at https://docs.gradle.org/4.4/userguide/gradle_daemon.html I already changed in gradle.properties the following line org.gradle.jvmargs=-Xmx1536m to

Using compiled SDK in Android Studio

二次信任 提交于 2020-02-05 02:36:07
问题 I am trying to compile android-6.0.1 from source and use the compiled SDK in Android Studio. To compile the SDK, I tried the commands: $ lunch sdk-eng $ make sdk Also tried: $ lunch sdk-eng $ make PRODUCT-sdk-sdk showcommands Compilation results 0 errors. To add the SDK in Android Studio, I checked SO questions on how to change SDK path. I am facing issues after path change. The folder of my compiled SDK has key folders named android-6.0.1 such as platforms/android-6.0.1 build-tools/android-6

how to fix Android Annotations 4.6.0 compile with android Studio 3.5 and 3.5.0 gradle

浪子不回头ぞ 提交于 2020-02-04 07:11:32
问题 I updated Android studio to 3.5 but there is a problem when I use android annotations Gradle may disable incremental compilation as the following annotation processors are not incremental: jetified-androidannotations-4.6.0.jar (org.androidannotations:androidannotations:4.6.0). Consider setting the experimental feature flag android.enableSeparateAnnotationProcessing=true in the gradle.properties file to run annotation processing in a separate task and make compilation incremental I've put

how to fix Android Annotations 4.6.0 compile with android Studio 3.5 and 3.5.0 gradle

拈花ヽ惹草 提交于 2020-02-04 07:09:24
问题 I updated Android studio to 3.5 but there is a problem when I use android annotations Gradle may disable incremental compilation as the following annotation processors are not incremental: jetified-androidannotations-4.6.0.jar (org.androidannotations:androidannotations:4.6.0). Consider setting the experimental feature flag android.enableSeparateAnnotationProcessing=true in the gradle.properties file to run annotation processing in a separate task and make compilation incremental I've put

'SDK Location not found' in Android Studio despite having the environment variable set correctly

萝らか妹 提交于 2020-02-04 05:46:06
问题 I am a little confused why I am getting this message when the ANDROID_HOME environment variable is actually set. It is also set in project defaults: I am probably missing something trivial here, but not sure what. Thanks 回答1: Check your local.properties file If sdk.dir="Your sdk path" is not available in the file. Please add it and try. 回答2: Faced the same issue with Intellij IDEA 2017.2 on MacOS Sierra . I have two projects with different Build targets (26 and 25). Both projects were created