android-studio

Automatic Commit and Push to GitHub from Android Studio

て烟熏妆下的殇ゞ 提交于 2020-01-11 03:57:06
问题 I have been working in Android Studio for more than 2 years. I used to create a repository in GitHub and commit files manually using the built in VCS in Android Studio. But I need to know if the commit and push process can be automatically done every 5 or 10 minutes after establishing the initial commit. I have researched and was clueless on this issue. If there is any way or a plugin to do this, it would be great. 回答1: There is not such feature for git and android studio (or plugin)

Use support library in android projects and library (Android Studio)

感情迁移 提交于 2020-01-10 22:16:50
问题 I'm using the new Android Studio, I'm looking for a way to use the support library from multiple projects. Basically I have a project that uses the ActionBarSherlock this projects requires the support library. So I added a reference as like in this question. Now I have the problem that my main project also uses the support library so I have it includes twice in some way. If I remove the library from one of both projects I'll get errors that some support library related classes are unknown

share intent text in android studio using kotlin

痞子三分冷 提交于 2020-01-10 20:00:30
问题 I want to share text in my CardView using share Intent using kotlin but there is a problem with last line in the code in kotlin the code val shareIntent = Intent() shareIntent.action = Intent.ACTION_SEND shareIntent.putExtra(Intent.EXTRA_STREAM, "ali") shareIntent.type = "text/plain" startActivity(Intent.createChooser(shareIntent, getResources().getText(R.string.send_to))) here is the problem in the code startActivity(Intent.createChooser(shareIntent, getResources().getText(R.string.send_to))

Android Studio 3.0 Unable to merge dex

∥☆過路亽.° 提交于 2020-01-10 19:08:11
问题 Just Updated android studio from 2.3.3 to 3.0 now I am having the error Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'. java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex Here is my gradle file: apply plugin: 'com.android.application' android { compileSdkVersion 25 buildToolsVersion '26.0.2' defaultConfig { applicationId "d91.compassacademy" minSdkVersion 19

No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android [duplicate]

与世无争的帅哥 提交于 2020-01-10 14:09:12
问题 This question already has answers here : Error: No toolchains found in the NDK toolchains folder for ABI with prefix: llvm (43 answers) Closed 2 years ago . Can anyone tell me why I am receiving this error? I have downloaded a series of projects from GitHub for a Udacity course. Since there are about 50 or 60 projects (Exercises and Solutions) in the repo, I presume it has to do with the fact that each is an individual project on its own. I do not have a problem usually when I fork a repo and

Failed to resolve: com.android.support:appcompat-v7:15.+

别来无恙 提交于 2020-01-10 10:35:09
问题 i find 2 solutions for this problem, but both didn't work. So i decided to ask you. I'm using Debian 8 Jessie and Android Studio 1.4 I just created new project and when i tried to start it i got an error: " Failed to resolve: com.android.support:appcompat-v7:15.+ " And gives me 3 option. 1) Install Repository and sync project When i tried it i got an error like this: Loading SDK information... Ignoring unknown package filter 'extra-android-m2repository'Warning: The package filter removed all

How to set NDK Build path in OSX for Android studio

时光总嘲笑我的痴心妄想 提交于 2020-01-10 08:48:29
问题 I had set the ANDROID_NDK_HOME as /Users/Shajilshocker/Documents/Android/NDK/android-ndk-r10b using a mac osx application called Environment Variables . I had confirmed that it set the path correctly in Terminal echo $ANDROID_NDK_HOME But when I run a shell file in a Android Studio project which invokes ndk-build I get the following error ndk-build: command not found How to make sure that ndk-build is in your build path ? How to set ndk-build in my build path ? Thanks for any help 回答1: Well,

Failed to sync Gradle project

喜夏-厌秋 提交于 2020-01-10 07:18:21
问题 I am using Android studio 1.3.1 and getting this failed to sync Gradle project error : Error:Unable to start the daemon process: could not reserve enough space for object heap. Please assign more memory to Gradle in the project's gradle.properties file. For example, the following line, in the gradle.properties file, sets the maximum Java heap size to 1,024 MB: org.gradle.jvmargs=-Xmx1024m my default org.gradle.jvmargs=-Xmx2048 and MaxPermSize=512m still it is showing me this error, can

Failed to sync Gradle project

为君一笑 提交于 2020-01-10 07:18:09
问题 I am using Android studio 1.3.1 and getting this failed to sync Gradle project error : Error:Unable to start the daemon process: could not reserve enough space for object heap. Please assign more memory to Gradle in the project's gradle.properties file. For example, the following line, in the gradle.properties file, sets the maximum Java heap size to 1,024 MB: org.gradle.jvmargs=-Xmx1024m my default org.gradle.jvmargs=-Xmx2048 and MaxPermSize=512m still it is showing me this error, can

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

不打扰是莪最后的温柔 提交于 2020-01-10 06:04:47
问题 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