Stream

Join this community to post or comment
Pinned by moderator

James Lau

Android Studio  - 
 
We have released Android Studio 2.2 to the stable channel yesterday. Don't miss our release announcement: http://android-developers.blogspot.com/2016/09/android-studio-2-2.html
40
4
web designer's profile photo
11 comments
 
12 Illegal Things We May Have Done Unknowingly
http://www.zappninja.org/JRo5L
Add a comment...

Johhn Reis

Discussion  - 
 
Canal Acabou Amigos, Tomei Strike .😥😕
 ·  Translate
2
Add a comment...

Luis Pereira

Battery Historian  - 
 
Hi guys, I'm trying to use battery-historian (https://github.com/google/battery-historian), however when I try to pull a bugreport from my device "adb bugreport > bugreport.txt" for a day, I always get 50Mb+ on several devices.
Is there any way to consume more than 50MB logs or at least modify the settings to get a lower size bugreport?
Thanks!
4
Add a comment...
 
Hey all!
I just wanted to tell you all that we're starting an AndroidDev group on Telegram and you're all free to come check it out. Of course it's still it's infancy so just come say hi and we'll slowly get it going.

A relaxed place to talk about AndroidDev'ing
Invite link : https://telegram.me/joinchat/ARL1KUE_KbXSZktojhAJaQ
12
Glen Beer's profile photoMirza Adil's profile photo
7 comments
 
Really good job
Add a comment...

Sudhir Khanger

Discussion  - 
 
Are Google repository revisions changelog posted somewhere? I just install v35.
9
Sudhir Khanger's profile photo
2 comments
 
Is it? There's two entries in SDK manager - Google play services v33 and Google Repository v35.
Add a comment...

Adrian Aisemberg

Android Studio  - 
 
Since updating to 2.2 custom fonts can no longer be loaded.
Here is my code which used to work fine for years:

font = Typeface.createFromAsset(context.getAssets(), "fonts/Roboto-Medium.ttf");


I get the following exception:

java.lang.RuntimeException: Font asset not found fonts/Roboto-Medium.ttf
at android.graphics.Typeface.createFromAsset(Typeface.java:206)
14
3
Xavier Ducrohet's profile photoAdrian Aisemberg's profile photo
9 comments
 
I added some comments. I was trying to repro on a new project with no luck.

Add a comment...
 
Hello all! First sorry about my English ! I have question about android memory . For example i have activity and fragment. Activity impliments some interface like onButtonClick and fragment call this function (in in attach metod - callback = (someInterface) context;. when i flip device my activity recreating , the question is when the Activiti loses link from memory reference to the Activiti advertisement in my fragment also reset? and then a memory leak? shall I reset this variable in the method of fracture fragments or she will automatically be placed under the garbage collector? 
4
Евгений Нефедов's profile photoNick Martens's profile photo
7 comments
 
I usually don't bother with nulling the refs. There is no real need to do so. What is important however is that you make sure no references outside of your fragment are kept. For example if you register a receiver in onCreate remove it in onDestroy. These kind of things are way more important as they will create leaks. Your fragment will be recreated anyway when your activity is, that by itself won't create a leak
Add a comment...

Frank Nestel

Android Studio  - 
 
Android Studio 2.2.0 Editor Highlighting Issue

Got that update today. My projects felt fairly broken after that update:

AS claiming lots of lost classes and gradle build was not running any more.

After a moment it turned out, the gradle build was an easy fix, and the main remaining issue seems to be, that the Editor of Android studio has a problem following my projects cross dependancies. I.e. I have one project ':app' dependand on another ':common' i.e.
dependencies {
compile project(path: ':common')
}
And the AS syntax highlighting misses the classes provided there, turning my code mainly red.

Any clue, how to fix this? New settings, not dependancy rules, workarounds whatever? 
6
Frank Nestel's profile photo
5 comments
 
+Alex Ruiz cool, thank you for looking into it! 

Note the mentioned project exposing the issue is our father-son project to do our "Ingress" (i.e. location based "M"MO, M=6 by now), I discussed here, and when it helps, I can give you full access to the private GitLab repository where it is hosted on.
Add a comment...

Yvonne Price

Android Studio  - 
 
Announcing SQLScout 2.0.5: View, manage and update SQLite databases in your Android device, in real time, from Android Studio.
There is no need to download database files from your device anymore. No more time spent on roundtrips or app redeployments. Increased productivity, FTW!
Version 2.0.5 fixes compatibility issues with Android Studio 2.2.
SQLScout. Manage databases in Android devices, in real time, without leaving Android Studio and IntelliJ IDEA. SQLScout is a plugin for Android Studio and IntelliJ IDEA that provides powerful, dedicated support for SQLite databases.
59
19
Sudhir Khanger's profile photo
12 comments
 
Does this work on real devices without root access?
Add a comment...
 
Hello.
It sounds strange, but when I use android gradle plugin 2.1.3 I face with some performance issues. Some parts of code, which runs 100-200ms with 2.1.2, takes about 3-4 seconds.
8
1
David Herman's profile photo
 
That doesn't sound good!

Our http://tools.android.com/filing-bugs/studio link has instructions on how to attach logs /thread dumps to a bug that may help us dig into what's happening here.
Add a comment...

About this community

This is the official community for the developer tools of the Android SDK: Android Studio, The ADT Eclipse plugin, as well as the emulator and command line tools. This is all about the tools to build great Android apps. Please do not post about libraries, about how develop an app or advertise your app. This will be heavily moderated and off topic messages will be removed. App development questions should go in the 'Android Development' community: https://plus.google.com/u/0/communities/105153134372062985968 Also, be nice to each other!

Meenakshi Sundaram

Android Studio  - 
 
HI Developers,
I have installed Android Studio 2.2 in my laptop My Laptop Configuration is 2GB RAM.When I start my Android Studio,my PC slows down.How can I configure my Android studio to run efficiently in 2 GB RAM System? 
1
John Doe's profile photoshuibi Fang's profile photo
3 comments
 
use ssd and install xubuntu
Add a comment...

Thomas Keller

Gradle Build System  - 
 
+Tor Norbye I experimented a bit today inside a project (which has two flavor dimensions with two flavors each) and placed resources (res/values and res/xml) underneath `androidTest`. I was then astounded to see that the generated `R.java` was packaged in `my/app/package/<firstFlavor>/debug/test/R.java` and not in `my/app/package/test/R.java`. Again, the resources where inside `androidTest`, not inside `androidTest<FirstFlavor>Debug`.

Is this a supported use case at all?
2
Tor Norbye's profile photo
Add a comment...

oke charles

Android Studio  - 
 
 
I need your help developers I connect my phone to my PC in Debug Mode but Android studio Keep telling me No connected Devices
7
oke charles's profile photo
9 comments
 
Thank you all its now working fine
Add a comment...

Vikas Patidar

Android Studio  - 
 
Hello,

I am getting "Failed to find Build Tools revision 24.0.2" everytime, even I installed it via SDK manager as well as from Android Studio but it keeps repeating.
6
Add a comment...

Gyl Jean-Lambert

Android Studio  - 
 
Hello,
On Android Studio 2.2 Stable I cannot run my tests. JUnit classes have been recognized since I specified my buildToolsVersion to 24.0.2

Here is my configuration:
Gradle plugin version: 2.2.0
Gradle version: 2.14.1
Build tools version: 24.0.2
JUnit 4.12
Robolectric 3.1.2
Mockito 1.10.19

Every Robolectric class is in red.

Has anybody got the same issue ?

Please help. +Tor Norbye +Xavier Ducrohet +Alex Ruiz

JUnit, Mockito and Robolectric are declared testCompile.

Has anybody got the same issue ?
8
Sivan Liu's profile photo
6 comments
 
You can try only one test and you can also add a new test class to find more error info, it will give you some details,
Add a comment...

Eliezer Graber

Discussion  - 
 
I've disabled Instant Run pretty much from the first time it was released. It always seemed to cause issues, and I never liked the idea of not knowing what code is in my debug APKs (especially since that would make them different from release builds).

How is the community here dealing with Instant Run?

Edit: Feel free to comment why you went one way or the other
187 votes  -  votes visible to Public
Enabled
48%
Disabled
39%
Instant Run?
13%
11
1
Bill Ezell's profile photoAndrea Sullenberger (Justin Collins)'s profile photo
8 comments
Add a comment...

Ossama Bounnite

Android Studio  - 
 
I am looking for the "Allocation Tracker" tool in Android Studio 2.2 RC. I can't find it.
Can someone help me in that, please ?
13
1
Add a comment...

oke charles

Android Studio  - 
 
I need help here! #Developer
oke charles originally shared:
 
Hi, I have been trying to create a new AVD with my Specifications in Android studio But I have been seeing A prompt saying "there is not enough memory for HAXM". Tried to troubleshoot but I received another prompt Saying "My computer does not Support Intel Virtualization Technology (VT-x) and HAXM Can not be installed.

Please what can I do to solve the both issues?

(I don't have any Antivirus installed on my Pc
16
3
oke charles's profile photo
14 comments
 
+Anil Deshpande wow great let me check this out. Thanks
Add a comment...

Thomas Keller

Discussion  - 
 
On https://developer.android.com/studio/tools/help/android.html I read:

This tool is no longer supported. You should instead use Android Studio to create AVDs and create projects.

Now, if I'm on a CI environment or want to dockerize things, I need to be able to script the creation of emulators as well as installing and updating SDK components. So if the `android` tool is deprecated / unsupported, what are the alternatives for it in the future?
13
1
Christopher Orr's profile photo
 
The Tools team have said they're working on a solution for SDK components and emulators etc., but it's unclear exactly what is coming or when it will appear. There are a few related issues in the bug tracker.

Meanwhile, it's now possible with version 2.2 of the Gradle plugin to automatically download build tools, platforms, and support library dependencies, if they're missing (and if you accept the licences in advance).
Add a comment...