android-studio

How to build FFmpeg (ver 3.1.1) on Android Studio (ver 2.1.2)

大兔子大兔子 提交于 2020-01-10 06:04:08
问题 I try to build and use FFmpeg Library on Android Studio. My Environments Windows 7 64bit, Cygwin64, Android Studtio 2.1.2, FFmpeg 3.1.1, Android NDK r12b Ref. Page http://www.roman10.net/2013/08/18/how-to-build-ffmpeg-with-ndk-r9/ I follow this page. I succeed FFmpeg library build using ./build_android.sh on Cygwin so I try to use FFmpeg Library's on Android Studio. Setting Android Studio for use FFmpeg my project_path/jni/Android.mk LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL

android studio 1.5.1, marshmallow no internet access detected won't automatically reconnect

一世执手 提交于 2020-01-10 05:53:05
问题 I'm having this problem on some 2013 Nexus 7's. got some code to work (please see below). package acme.wifi; import android.content.*; import android.net.wifi.*; import android.os.Bundle; import android.support.design.widget.FloatingActionButton; import android.support.design.widget.Snackbar; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.Toolbar; import android.view.View; import android.view.Menu; import android.view.MenuItem; import java.math.*; import

Error:Execution failed for task ':app:transformClassesWithMultidexlistForDebug' android studio

孤者浪人 提交于 2020-01-10 05:06:21
问题 I create a game on buildbox I export the project but I can't start the game on android studio My problem is that I can't run the application or produce an apk file someone can help me please. The error Error:Execution failed for task ':app:transformClassesWithMultidexlistForDebug'. java.io.IOException: Can't write [C:\Users\youne\Desktop\android2\app\build\intermediates\multi-dex\debug\componentClasses.jar] (Can't read [C:\Users\youne.gradle\caches\transforms-1\files-1.1\support-core-ui-25.2

HAXM error but vt-x is enabled

走远了吗. 提交于 2020-01-10 03:13:25
问题 When I am installing Intel HAXM I have the following error: This computer meets the requirements for HAXM, but Intel Virtualization technology (VT-x) is not turned on. HAXM cannot be installed until VT-x is enabled. So, I have checked my BiOS, VT-x is supported, and I enabled Intel virtualization (it wasn't before). I also have checked if it was really enabled with the Intel virtualization technology detection tool (Intel Processor Identification Utility) and it says: Intel(R) Virtualization

android project: process finished with non-zero exit value 2

a 夏天 提交于 2020-01-10 02:52:04
问题 I'm unable to compile my android project. Google and other SO posts tell me it (probably) has something to do with dependencies, but I can't find where. Here's the error: Error:Gradle: Execution failed for task ':app:dexDebug'. > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.7.0_79\bin\java.exe'' finished with non-zero exit value 2 and my gradle file: apply plugin: 'com.android.application' android {

Export unsigned apk from a Gradle Project in Android Studio

五迷三道 提交于 2020-01-09 19:39:14
问题 I usually create projects with Eclipse and import them into Android Studio, because I hate the project structure AS gives me. In it´s module settings, I have the possibility to create artifacts which allow me to output the built apk to a certain path. Now I have created a Gradle project directly with AS and it seems that those projects have quite less options than eclipse projects. I don´t find anything to output my apk and I don´t find any apk inside my project folder after building. How do

Automatically solve Android build Error:Frame pixels must be either solid or transparent (not intermediate alphas). - Found at pixel #4 along top edge

馋奶兔 提交于 2020-01-09 13:30:52
问题 Android Studio (using SDK 19, 21 or 22) shows an error that Eclipse ADT (using SDK 19) does not: Error:9-patch image D:\Workspaces....\res\drawable-hdpi\btn_bg_common_press.9.png malformed. Error:Frame pixels must be either solid or transparent (not intermediate alphas). - Found at pixel #4 along top edge. Or another error: Error:Ticks in transparent frame must be black or red. both within aapt Error:Error: com.android.ide.common.process.ProcessException: org.gradle.process.internal

Automatically solve Android build Error:Frame pixels must be either solid or transparent (not intermediate alphas). - Found at pixel #4 along top edge

落爺英雄遲暮 提交于 2020-01-09 13:30:18
问题 Android Studio (using SDK 19, 21 or 22) shows an error that Eclipse ADT (using SDK 19) does not: Error:9-patch image D:\Workspaces....\res\drawable-hdpi\btn_bg_common_press.9.png malformed. Error:Frame pixels must be either solid or transparent (not intermediate alphas). - Found at pixel #4 along top edge. Or another error: Error:Ticks in transparent frame must be black or red. both within aapt Error:Error: com.android.ide.common.process.ProcessException: org.gradle.process.internal

Use different build types of Library Module in Android App Module in Android Studio and Gradle

自闭症网瘾萝莉.ら 提交于 2020-01-09 12:52:28
问题 I have a workspace containing several different apps and a common library project that I am looking to convert from Eclipse to Android Studio and from Ant to Gradle. Currently, in our ant scripts we replace text in a few of our classes before compiling depending on if the build is for debug purposes, QA, Beta/Customer Acceptance testing or meant for release to Google Play. I want to take advantage of the build variant system in Gradle and use value resources (booleans, strings, etc) to keep

Can't find resource identifiers from AAR in XML

核能气质少年 提交于 2020-01-09 11:13:35
问题 I developed a custom Preference for an application. It has two custom attributes. I'm trying to move the Preference to a library project to reuse in other projects. I moved the Java file along with the corresponding layout and attr XML files. Here's the attr file in the library project: <?xml version="1.0" encoding="utf-8"?> <resources> <declare-styleable name="NumberPickerPreference" > <attr name="minValue" format="integer" /> <attr name="maxValue" format="integer" /> </declare-styleable> <