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

Android Studio choosing the emulator instead of running last one automatically

I am trying to test multiple screen sizes and is annoying having to shut down the emulator then open a new one just to check the size (there is a new font so I can't view it in the editor). I open multiple emulators but the box doesn't appear to…
Nicholas Muir
  • 2,897
  • 8
  • 39
  • 89
0
votes
1 answer

Unable to merge dex - Android Studio 3.0.1

Updated gradle and I guess that's what messed things up. My gradle version is build.gradle // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { mavenCentral() …
0
votes
2 answers

Variables don't get changed after going back

I have a boolean variable public static boolean isInDarkTheme but when I try to change the value in my settings activity it only gets changed tempolarily. I did it so: if (on) { //Do something when Switch button is…
MrMinemeet
  • 304
  • 6
  • 17
0
votes
0 answers

how to not connected list Adapter to layout file not connect

public class ListAdapter extends RecyclerView.Adapter { List mListData; public ListAdapter(List mListData) { this.mListData = mListData; } @Override public myViewHolder onCreateViewHolder(ViewGroup viewGroup, int viewType) { …
0
votes
1 answer

Implementing android app in multi language

I am new to the android and android studio. I want to develop an App for Indian farmers. Now the App will have support for multiple language i.e. Hindi, English, and Gujarati. I am planning to provide a simple UI to user to choose his preferred…
Gaurav Sahu
  • 181
  • 3
  • 11
0
votes
4 answers

Android Studio Preview Not Showing RecyclerView and Toolbar Correctly

Please find the screenshots I searched lot for this. My android studio is updated with 3.0.1. Here are the dependencies in my project. Is the issue with studio 3.0.1? compile 'com.android.support:appcompat-v7:23.4.+' compile…
0
votes
1 answer

Errors - Android Studio - Gradle Ask

I am getting these errors in Android Studio: Error:(9, 5) error: style attribute 'attr/colorError (aka com.kevinladelfa.duevent:attr/colorError)' not found. Error:(11, 5) error: style attribute 'attr/colorPrimary (aka…
user9244682
0
votes
1 answer

SQLite Data insertion error Android studio

This is my activity class.when i press the data button data should be inserted into database.But every time "Not inserted" comes up my = new DatabaseHandler(this); data=(Button)findViewById(R.id.data); data.setOnClickListener(new…
0
votes
0 answers

Adding 2 number calculator

Im new to android studio and this is my first project. I have created a simple calculator to add 2 numbers theres no error in code but whenever im trying to run the app it always crashes import android.support.v7.app.AppCompatActivity; import…
0
votes
0 answers

Gradle sync failed: Plugin with id 'com.android.application' not found

I have updated my Android Studio from 2.x to 3.x. At first it showed gradle sync failed, then I fixed it somehow with the help of Stack Overflow. In that process I updated gradle. It fixed for some time later by following the steps in the Stack…
rithesh
  • 19
  • 4
0
votes
0 answers

Error:(66, 56) error: cannot find symbol variable M

I have a sample app that is using library dependency via maven. I'm getting compilation errors like following: Error:(66, 56) error: cannot find symbol variable M Which actually is the following line in code if (Build.VERSION.SDK_INT <…
lokesh
  • 601
  • 7
  • 19
0
votes
1 answer

Android studio AVD internet access

I am using Android studio 3.0.1 and that is working really very fine. I have upto date SDK version and I have upto date gradle version. Everything seems to be perfect now. But I am now facing a problem and I have no idea why it is…
Android teem
  • 780
  • 2
  • 13
  • 36
0
votes
1 answer

Emulator gives blank screen with errors in Android Studio 3.0.1

I am getting blank screen for android emulator in Android Studio 3.0.1. It gives multiple errors as per following screenshots: Please let me know if it is issue with the configuration of system or some settings needs to be updated.
Mobi
  • 91
  • 1
  • 2
  • 7
0
votes
0 answers

butterknife upgrading from 7.0.1 to 8.8.1 in AS 3.0 android

My previous config AS = 2.3 gradle = 2.3.3 distributionUrl = https://services.gradle.org/distributions/gradle-4.1-all.zip Views referenced via @Bind(R.id.tvName) My current config AS = 3.0.1 gradle = 3.0.1 distributionUrl =…
karthik kolanji
  • 2,044
  • 5
  • 20
  • 56
0
votes
1 answer

Using a DialogFragment to create buttons

I need to use a dialogfragment to create buttons each time the Start Goal button is pressed. The Dialogfragment contains 2 editTexts for a goal name and goal amount. How can I get the value of the 2 editTexts and display them on the button? I used 2…
Waffles
  • 1
  • 2