android-studio-2.0

When adding Facebook SDK “ appeventslogger.activateapp(this)” is shown deprecated

余生颓废 提交于 2019-12-18 13:52:58
问题 Using Facebook SDK 4.5. Tried using SDK 4.5 to 4.11. Problem still facing. AS per this changelog : https://developers.facebook.com/docs/android/change-log-4.x Its changed to AppEventsLogger.activateApp(Application) But I am facing trouble while implementing it. : 回答1: Just replace AppEventsLogger.activateApp(this) to AppEventsLogger.activateApp(getApplication()); 来源: https://stackoverflow.com/questions/36857441/when-adding-facebook-sdk-appeventslogger-activateappthis-is-shown-deprecate

Gradle version 2.10 is required. Current version is 2.8 Error

徘徊边缘 提交于 2019-12-18 04:36:07
问题 Following things are using in the project- The android studio version - 2.0 Preview 4. ANDROID_BUILD_MIN_SDK_VERSION=9 ANDROID_BUILD_TARGET_SDK_VERSION=22 ANDROID_BUILD_TOOLS_VERSION=22.0.1 ANDROID_BUILD_SDK_VERSION=22 classpath 'com.android.tools.build:gradle:2.0.0-alpha9' As per the error I changed the distribution url https\://services.gradle.org/distributions/gradle-2.8-all.zip to https\://services.gradle.org/distributions/gradle-2.10-all.zip but still getting the following error Error:(1

Not able to debug app on android device - Android Studio 2.0

别说谁变了你拦得住时间么 提交于 2019-12-17 18:45:21
问题 I am not able to debug an app on my device (Asus Zenphone 2) after I updated android studio to 2.0. I keep seeing below message in debug tab right after I click on debug icon in Android studio. Message in debug tab in Android Studio UI --------------------------------------------------------------- Waiting for application to come online: packagename Waiting for application to come online: packagename Waiting for application to come online: packagename Waiting for application to come online:

Could not find method android() for arguments

瘦欲@ 提交于 2019-12-17 04:30:15
问题 I've been trying to import a project to Android Studio and this is where I am stuck, there is a similar question on Stack Overflow but it did not provide a solution to my particular error. This is my error log: C:\<some location>\build.gradle Error:(24, 1) A problem occurred evaluating root project '<project name>'. > Could not find method android() for arguments [build_4fli1jm76ubcnxesnhqnhie47$_run_closure3@6e71db85] on root project '<project name>'. Information:BUILD FAILED The Gradle sync

Android Studio IDE weird behavior (graphic bug?)

*爱你&永不变心* 提交于 2019-12-14 03:49:20
问题 I just started with Android development and installed Android Studio 1.4.1. Everything installed correctly and no errors were shown. When I was just about to write the first lines of code Android Studio started to act really weird, like when I moved my mouse over the opened files it started to render/draw the code all over (Example, Example 2). The weird thing is, this happens all the time after I ran Android Studio for like 2-3 minutes. Does anyone have an idea why this is happening? 回答1:

Gradle build :app:mergeDebugResources file not found error

做~自己de王妃 提交于 2019-12-13 19:25:18
问题 I installed a fresh copy of the newest Android Studio and then created a new "Basic Activity" project with the default settings. Now when I try to execute Gradle Build it will generate several "file not found" errors as follows: 16:49:27: Executing task 'build'... Executing tasks: [build] Configuration on demand is an incubating feature. :app:preBuild UP-TO-DATE :app:preDebugBuild :app:compileDebugAidl :app:compileDebugRenderscript :app:checkDebugManifest :app:generateDebugBuildConfig :app

Android studio debugger stops at random location

▼魔方 西西 提交于 2019-12-13 15:48:00
问题 I put the breakpoint at the updateChauffeurs method, it sets it at the loadLicenties method and it breaks at the loadLicenties method (see watches). Project Clean, project rebuild, computer and android tablet reboot didn't help. What did help was to replace the Nexus 7 (2012) tablet with a Samsung TabPro 8.4 tablet -> here the breakpoints are hitted correctly. Any tips? Running android studio 2 beta 7 with gradle 2.10 and instant run enabled. 回答1: Wukash comment was right: simply uninstalling

Error:Error converting bytecode to dex: Cause: com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/common/api/zza;

本小妞迷上赌 提交于 2019-12-13 08:03:07
问题 I have this error: Error:Error converting bytecode to dex: Cause: com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/common/api/zza; I am not getting how to solve this, please help. I don't know whether to include some lib or what 回答1: you need to use same version of firebase dependencies compile 'com.google.firebase:firebase-auth:9.0.2' compile 'com.google.firebase:firebase-database:9.0.2' or compile 'com.google.firebase:firebase-auth:9.6.1' compile 'com.google

How to clear other applications cache from another android app in Marshmallow?

独自空忆成欢 提交于 2019-12-12 21:03:12
问题 I'm trying to develop an android app that could erase others application cache data. I tried to browse through all blogs but none of them worked for me. I am able to clear my application's cache by the following code Reference : How to delete other applications cache from our android app? private static final long CACHE_APP = Long.MAX_VALUE; private CachePackageDataObserver mClearCacheObserver; btnCache.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) {

Error:Execution failed for task ':app:packageDebug'. > com.android.builder.packaging.PackagerException

家住魔仙堡 提交于 2019-12-12 10:47:37
问题 I use Android Studio 2.0 RC 1. Today android studio gave itself a mistake. Error:Execution failed for task ':app:packageDebug'. com.android.builder.packaging.PackagerException: java.io.IOException: Failed to read zip file 'D:\Unimag\MyUnimax21042016\app\ build\outputs\apk\app-debug.apk'. My gradle file: apply plugin: 'com.android.application' android { compileSdkVersion 23 buildToolsVersion "23.0.1" defaultConfig { applicationId "kz.dreamwings.unimax" minSdkVersion 15 targetSdkVersion 23