android-studio-2.0

How do merge specific svn revisions from branch to trunk in Android Studio 2.0

♀尐吖头ヾ 提交于 2019-11-30 18:23:35
问题 Some time ago there was a great window where I could choose which revisions I want to merge. And recently the new dialog started to appear. It says : This will make branch 'https://my_branch' no longer usable for further work. It will not be able to correctly absorb new trunk (https://my_trunk) changes, nor can this branch be properly reintegrated to trunk again. Are you sure? But I don't want to reintegrate it. I just want to merge a few revisions. can I still do that in Android Studio

Build tools update breaks my compile

旧时模样 提交于 2019-11-30 15:23:53
I updated Android Studio 2.0 Preview from 4 to 5 this morning. If I continue to build with: dependencies { classpath 'com.android.tools.build:gradle:2.0.0-alpha3' } this will still compile successfully. But if I move up to -alpha5 I get this error: Error:Execution failed for task ':app:compileReleaseJavaWithJavac'. java.io.FileNotFoundException: C:....\intermediates\exploded-aar\com.google.android.gms\play-services\8.4.0\jars\classes.jar (The system cannot find the path specified) Shawn Thye From now on, I think Google expects us to not use this: 'com.google.android.gms:play-services:8.4.0'

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

走远了吗. 提交于 2019-11-30 10:44:44
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. : KRist Just replace AppEventsLogger.activateApp(this) to AppEventsLogger.activateApp(getApplication()); 来源: https://stackoverflow.com/questions/36857441/when-adding-facebook-sdk-appeventslogger-activateappthis-is-shown-deprecate

Error while Installing restart patches when launching android app with Android Studio 2.0

江枫思渺然 提交于 2019-11-30 08:07:16
Currently I'm using Android Studio 2.0 and installing my APK into my Samsung device (S6). However, when rebuilding my code and running it again I receive the following error: Error installing cold swap patches: com.android.tools.fd.client.InstantRunPushFailedException: Error creating folder with: run-as com.appcustomer mkdir -p /data/data/com.appcustomer/files/instant-run/inbox Error while Installing restart patches Does anyone have any idea what this issue is? I think the issue is due to instant run feature of Android Studio 2.0. This might help Open the Settings or Preferences dialog.

Why is AppTheme.NoActionBar not working?

前提是你 提交于 2019-11-30 07:59:32
问题 I've created an Android app in Android Studio, and it has created these styles by default: <style name="AppTheme.NoActionBar"> <item name="windowActionBar">false</item> <item name="windowNoTitle">true</item> </style> However, in an activity, I try to set this as a theme: <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" ... android:theme="@style/AppTheme.NoActionBar"> But when I run the app I'm getting the action bar: Why am I getting an action bar? Am I doing something

Emulator not working in Android Studio 2.0

强颜欢笑 提交于 2019-11-30 05:24:17
问题 I am using Android Studio 2.0 Stable version. Whenever I click on the play button on the device to run it shows starting AVD progress in android studio and after completing it's progress nothing happened.The app window remains as it shown in screenshot and the emulator doesn't start. I can't find a solution for this issue. I have already tried many solutions which I found on the internet, changing HAXM version android SDK update, changed target API's. But nothing works. 回答1: Try edit AVD

Android studio 2.0 gradle transformClassesWithDexForDebug fails when using button “run”

僤鯓⒐⒋嵵緔 提交于 2019-11-30 01:29:10
I have a problem after migration from android studio 1.5 to 2.0 In one of my project (only one) i can't use android studio run button, because then, build fails on gradle task "transformClassesWithDexForDebug" with error: :app:transformClassesWithDexForDebug AGPBI: {"kind":"error","text":"Uncaught translation error: com.android.dx.cf.code.SimException: local variable type mismatch: attempt to set or access a value of type java.lang.Object using a local variable of type int. This is symptomatic of .class transformation tools that ignore local variable information.","sources":[{}]} AGPBI: {"kind

Build tools update breaks my compile

白昼怎懂夜的黑 提交于 2019-11-29 22:22:58
问题 I updated Android Studio 2.0 Preview from 4 to 5 this morning. If I continue to build with: dependencies { classpath 'com.android.tools.build:gradle:2.0.0-alpha3' } this will still compile successfully. But if I move up to -alpha5 I get this error: Error:Execution failed for task ':app:compileReleaseJavaWithJavac'. java.io.FileNotFoundException: C:....\intermediates\exploded-aar\com.google.android.gms\play-services\8.4.0\jars\classes.jar (The system cannot find the path specified) 回答1: From

Conflict with dependency 'com.android.support:support-annotations'. Resolved versions for app (23.3.0) and test app (23.1.1) differ

拟墨画扇 提交于 2019-11-29 11:06:11
问题 I came across this exception while adding espresso to an android project. I already try the link that comes with this exception **Conflict with dependency 'com.android.support:support-annotations'. Resolved versions for app (23.3.0) and test app (23.1.1) differ** also I add the following line according to other thread I found **androidTestCompile 'com.android.support:support-annotations:23.1.0'** But the problem still persist. I am using the following configurations: buildToolsVersion "23.0.2

Error while Installing restart patches when launching android app with Android Studio 2.0

浪尽此生 提交于 2019-11-29 10:39:03
问题 Currently I'm using Android Studio 2.0 and installing my APK into my Samsung device (S6). However, when rebuilding my code and running it again I receive the following error: Error installing cold swap patches: com.android.tools.fd.client.InstantRunPushFailedException: Error creating folder with: run-as com.appcustomer mkdir -p /data/data/com.appcustomer/files/instant-run/inbox Error while Installing restart patches Does anyone have any idea what this issue is? 回答1: I think the issue is due