Questions tagged [android-studio-3.0]

Use for questions about using Android Studio, an official IDE targeted at Android development. Do NOT use for questions about programming for Android in general; instead use [android].

Android Studio is the official IDE for Android development, and includes everything you need to build Android apps.

For more updates about Android Studio 3.0 check out these videos

  1. AS 3.0
  2. Java 8 support
  3. The new Profiler
1629 questions
0
votes
1 answer

How to achieve this Layout

Hey there I have been wanting to implement a layout that is responsive and scaleable. I have been looking into the Linear Layout with the layout_weight attribute but to no success. Could you give me a hint or point me in the right direction as one…
PedroQ
  • 15
  • 5
0
votes
1 answer

Android Studio logcat search bar

We are a group of developers, we ALL have the latest studio but some of us has a logcat search bar that can be triggered by Command + F like this: And some of use cannot trigger that search bar... any idea what is the difference??
TacB0sS
  • 10,106
  • 12
  • 75
  • 118
0
votes
0 answers

How to resolve the R. package

This is my code: import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.widget.TextView; /** * This app displays an order form to order coffee. */ public class MainActivity extends…
0
votes
2 answers

androidTestImplementation gives an error with newer version of test runner

When I create a new project in android studio it gives this error Error:Execution failed for task ':app:preDebugAndroidTestBuild'. Conflict with dependency 'com.android.support:support-annotations' in project ':app'. Resolved versions for app…
Brutal
  • 798
  • 1
  • 14
  • 37
0
votes
5 answers

Android Studio 3.1.2 Run button not working

Android Studio 3.1.2 Run button enabled. But when click on run button no action happened. I restarted android studio and my windows 10 also. But still Run button click not showing anything.
0
votes
1 answer

Text output on an AndroidApp

I'm trying to program an android App with AndroidStudio. It is like an calculator and i don't know how to print the answer on my screen. I tried it with System.out.println() but it doesn't work Log._() doesn't work too.
0
votes
1 answer

Obfuscated android library jar file location in android studio 3.1

I have enabled proguard in my android library for code obfuscation. After updating my android studio to 3.1, I cannot find obfuscated .jar file location of my android library project. Earlier my android library project can be obfuscated and…
0
votes
0 answers

How to exclude java file from external library?

Error:Error converting bytecode to dex: Cause: com.android.dex.DexException: Multiple dex files define android/support/v7/widget/DefaultItemAnimator$1; I want to exclude android/support/v7/widget/DefaultItemAnimator from…
0
votes
1 answer

Android studio configure command line properties

While release builds I am setting this property -PsomeVariable="C:\Users\bchichani\signing.pem" through command line. Need to know how to configure android studio so that it set this every time runs gradle build even for debug builds.
0
votes
1 answer

Geocoder returns false on isPresent()

So I wrote some code for maps in my app, and it works on my phone just fine, sadly it does not work on my emulator which is not comfortable enough for me here is the code: String searchString = mSearchText.getText().toString(); Geocoder geocoder =…
0
votes
0 answers

Socket Datastream transfer to other activity

I'm doing a socket programming where client has 2 activities. And different types of data from the server are used to be displayed on both the activities. I created a socket in the first activity, opened the Inputdatastream and then transferred the…
0
votes
1 answer

How do I create different flavours while using Google Services in Android Studio?

I have an app which uses Google Services (I'm connecting to Firebase). I now want to set it up with two different flavours - free and paid. I've done the following in build.gradle: productFlavors { free { applicationId…
Sharon
  • 3,471
  • 13
  • 60
  • 93
0
votes
1 answer

ontouch for RecycleView affects other positions

I have a RecyclerView that I want to add a colored place holder so that when the user clicks on an item, that item and all before become colored. If the previous item clicked was an item after it I'll uncolor that and the other items that come after…
0
votes
1 answer

android app crashes after adding Up Button

I'm learning how to user Android Studio and I'm working on an app that is a form, like the ones you would register as a user at a website. You add a username, your full name, email address and then use a DatePicker to select your date of birth. Then…
user71311
  • 11
  • 2
  • 8
0
votes
1 answer

How to use both Toast, intent and onClickListener?

To explain: I'm learning Android Studio I'm trying to make a program which has a form similar to the ones where you sign up for an account on a website (with a username, name, email address and a date picker in spinner mode so I can set the date of…
user71311
  • 11
  • 2
  • 8