Questions tagged [android-studio-3.0]

0

votes
0

answer
16

Views

Resources$NotFoundException thrown after updating Gradle Plugin to 3.4.0

I have a project with multiple modules, and after updating to Gradle Plugin 3.4.0 and Gradle 5.1.1, everything else seems to work OK, but the module for Espresso tests crashes immediately when trying to run the tests: android.content.res.Resources$NotFoundException: Drawable com.example.foo:dimen/ac...
manabreak
1

votes
3

answer
797

Views

Failed to finalize session : INSTALL_FAILED_INVALID_APK: /data/app/…tmp/…-debug version code 29 inconsistent with 28

This error happens when i try to run the app on the simulator: It asks if it can uninstall the current application but there is no application installed on the simulator. If i click ok, just fails. I try to invalidate cache and restart, to reboot the pc, to create a new simulator, to update Android...
ByteArtisan
0

votes
0

answer
17

Views

unchecking checkbox doesnt remove id from arraylist

I am doing functionality of checkbox and it is working fine for checked but when i uncheck the checkbox it gives error.. and one thing when i checked the checkbox i am storing id of that item into arraylist and i want to remove that id when uncheck the checkbox final CheckBox checkBox = listViewIte...
Swapnil Patil
1

votes
1

answer
758

Views

Android Studio 3.0 lint warnings for references to activity

After upgrading my project to use Android Studio 3.0 with API level 27.0.0 (Android 8.1) I get a lot of new lint warnings related to using getActivity() inside a fragment (which I thought was perfectly all right). Examples: ((AppCompatActivity) getActivity()).setSupportActionBar(toolbar); getActivit...
Ove Stoerholt
1

votes
2

answer
607

Views

How create android emulator without android studio?

Android Studio 3.2. I create 2 emulators by Android Studio. Nice. But the question is: Is it possible to create android emulator WITHOUT Android Studio? Our QA need to use emulators for test our applications. But it not need Android Studio. How QA can create android emulator without Android Studio?
Alexei
1

votes
0

answer
19

Views

Fragments that can be swiped in 4 directions

So basically I want to create an app that when I swipe left it shows a fragment and so as up down and right. Here is the code I have so far @Override public Fragment getItem(int position) { switch (position){ case 0: return ChatFragment.create(); case 1: return EmptyFragment.create(); case 2: return...
KristoferH
1

votes
1

answer
291

Views

In android Studio Image is not showing in preview

I'm using ImageView in AndroidStudio but AndroidStudio doesn't show my image in the preview. Please find the below screenshot:
faizal mohammed
1

votes
1

answer
1.6k

Views

Gradle sync failed: Could not connect to server

In my android studio 3.0 i am continuously getting this error - Cannot start internal HTTP server. Git integration, JavaScript debugger and LiveEdit may operate with errors. Please check your firewall settings and restart Android Studio. after this my gradle sync also failed stating the error - Gra...
Gaurav Sahu
1

votes
2

answer
191

Views

How to enlarge Logcat search text field in Android Studio? [duplicate]

This question already has an answer here: Android Studio 3.0 - Logcat window can not show filter input control 5 answers The text field for search in Android Studio on my laptop (15-inch diagonal) is too small. I barely able to type anything on it. I move Android Studio to a larger monitor and I'm...
aldok
1

votes
3

answer
431

Views

Android Studio 3.0.1-Theme Editor Buggy

This is how my theme editor looks like right now Everything looks like it hasn't been rendered properly. Someone else posted the same problem but it was unanswered. Anyone has a solution to this? And changes I make from the theme editor are not reflected in the styles.xml.
Vishnuvardhan Prem
1

votes
1

answer
39

Views

Android 3.0 not working on Windows 10

I installed the Android Studio 3.0 in my laptop. The OS is Windows 10, not an Insider build. After successful installation, when I open the Studio, it opens and after a while it stops working saying 'Android Studio stopped working'. I tried canary build and the issue is still the same. I installed A...
Gowtham Venkat
1

votes
0

answer
421

Views

Trying to add .so files to my android studio application

Im trying to add .so files to my application and im getting the following error: E/AndroidRuntime: FATAL EXCEPTION: main Process: com.getmagnet, PID: 22578 java.lang.UnsatisfiedLinkError: No implementation found for int com.getmagnet.App.MR.ActivateLibrary(java.lang.String) (tried Java_com_getmagnet...
WalksAway
1

votes
0

answer
59

Views

Gradle not syncing after update

I was working on a project in android studio. Unfortunately, my harddisk started giving errors, so I backed up my project. Then, I bought a new harddisk and installed android studio(ver 3.0.1). I don't clearly remember the previous version of android studio that I used but I guess it was 2.6. Here c...
Rektirino
1

votes
0

answer
160

Views

C++ set wants an initializer_list when I try to add a single number

I have a problem that would seem not a lot of people run into. I'm not sure if it's blatantly obvious what to do and I'm not getting it, or I am writing something wrong. I'm using Windows 10, Android Studio. my code segment looks like this. vector vpLatSortedNodes; vector vpLonSortedNodes; //The ab...
Johnk
1

votes
0

answer
20

Views

How to show ads after second activity close?

I have created a show_ads() function to show interstitial ads, and now I want to show the ads after a second activity close, but there is fragment in the second activity. I need to do like this when i press back_button 'fragment->second_activity->ads->first_activity'. Can you tell me how to do that...
Dani Rahmat
1

votes
0

answer
405

Views

Couldn't connect to server (android studio 3.0.1) error

I downloaded Android Studio 3.0.1 in my Windows 10 64bit and it shows this error. Error:Could not connect to server [1a6902e5-d707-4db6-a658-c24ade784664 port:49832, addresses:[/127.0.0.1]]. Tried addresses: [/127.0.0.1]. Cannot start internal HTTP server. Git integration, JavaScript debugger and Li...
rowa yousef
1

votes
0

answer
25

Views

android : type mismatch for native jni library

I am trying to build an AAR, which includes a static prebuilt C library and calls its functions through JNI. When I am including this AAR file in a different project and executing that APK. It runs on one target (say T1) but gives error on other Target(T2). The error says, in libs/arm64/lib.so - Th...
funny_geek
1

votes
0

answer
32

Views

Generate audiotrack as separate thread and make manipulations during playing

I am trying to build an app in java with android studio, and what I want to do is to generate a AudioTrack (right now basically a sine wave), but I want this to run as a separate thread (so multiple tracks can be started simultaneous, and also the rest of the app is not locked while playing), and I...
Tessmus
1

votes
0

answer
141

Views

Memory leak when opening Chrome from react native app on Android

This happens only on Android 7.1 in our tests when opening a link using Chrome, intermittently. It seems to be some sort of memory leak that leads to our app beeing stopped, how can we prevent this. We are not seeing it on iOS, and not on any other of our testingphones for android or in the emulator...
The Kaizer
1

votes
0

answer
124

Views

Can't create a directory in the correct directory in AndroidStudio 3.0

Am reading the Android App Dev for Dummies 3rd edition. I've had no headaches till I reached page 92 where it asks me to '...create the file src/main/java/com/dummies/silentmodetoggle/util/RingerHelp.java' The only thing is that I cannot find a way to create the directory 'util' in the proper dire...
Daniel Kaplan
1

votes
0

answer
112

Views

Can we ever use AsyncTask and AsyncTaskLoader in the same project?

I am new to android developing. And i have searched for this answer. Here’s what i know: Both AsyncTask and AsyncTaskLoaders do background processing in Android. The AsyncTaskLoader framework uses AsyncTask. In most cases, it’s better to perform background processes with the loader instead of A...
Kelli Davis
1

votes
1

answer
22

Views

Customize order of “Add new” elements (ALT + Ins)

Clicking ALT + Ins shows a window where we can select what we want to add. I was wondering, is there a way to change the order of these elements? In particular, since almost all new classes are in Kotlin, I'd like to have Kotlin as first option, so I won't have to click the down arrow to select it.
Manza
1

votes
0

answer
314

Views

com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex - Android Studio 3.0.1

Hello before asked the question I tried many solutions, but none of them works see below my build.gradle dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') implementation 'com.android.support:appcompat-v7:25.3.1' implementation 'com.android.support:support-v4:25.3.1' implementat...
KOUAKOU
1

votes
0

answer
106

Views

Android Studio 3.0.1 grade syncing getting this com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex error

Android Studio 3.0.1 IDE Am trying to add an aar in my project. that time, am getting this error.. Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'.More than one file was found with OS independent path 'org/apache/xml/security/resource/xmlsecurity_de.properties' aga...
harikrishnan
1

votes
2

answer
527

Views

Error: Project 'app' not found in root project 'projectName'

I have an old app developed in Eclipse and now trying to migrate it to Android Studio. I updated the libraries and followed the basic steps. Now, I am getting this error: Error: Project 'app' not found in root project 'projectName'. I am using classpath 'com.android.tools.build:gradle:3.0.1' an...
satish
1

votes
0

answer
28

Views

Android Studio device monitor cannot work well

Cannot click anything: Developer mode and USB debug have been opened in my phone.
宋泽嶒
1

votes
1

answer
133

Views

Why doesn't the Guideline work when I use CardView within ConstraintLayout?

I hope to design a UI to dsiplay two columns with latest ConstraintLayout layout, so I use Guideline, it can work when I use Code B (Please see Image B), But Code A can't display two columns (Would you please see the Image A) after I add CardView control to the layout, what's wrong with my code? Im...
HelloCW
1

votes
1

answer
34

Views

Not able to show a toast message or open new activity on cardview item ClickListener in gridlayout…!

Here is my java show. I am not able to open new activity or show a toast message on cardview item OnClickListener. I use gridlayout as the id of main Grid Layout in XML package com.example.shakeelmughal.assanislam; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import and...
Shakeel Mughal
1

votes
1

answer
29

Views

Create and launch Espresso test

Is there a way to create an espresso test file from a class like does Command / Control+Shift+T? Same for launch the current test with espresso into the device? It's very annoying to create/launch every test manually through the whole process of going to the file's hierarchy and then create the laun...
crgarridos
1

votes
0

answer
15

Views

Android Studio and tabs

What is the logic behind Android Studio's tab/space structure? I don't get it and it makes the code look like it has random tabs. Traditionally every new level of hierarchy introduces an extra tab. That's how it's been since forever in pretty much all IDE's. So whats this exactly? Reds here are one...
breakline
1

votes
0

answer
304

Views

Failed to list version for package

After migrating to version 3 of gradle, I get this error in all packages Error:org.gradle.api.resources.ResourceException: Failed to list versions for com.facebook.android:facebook-login. Error:org.gradle.api.resources.ResourceException: Unable to load Maven meta-data from https://s3.amazonaws.com/m...
Luiz Oliveira
1

votes
1

answer
201

Views

Line gets highlighted and hidden to current cursor position while typing code on Android Studio

I occasionally bump into this issue where when I'm typing code on android studio after some time the code gets auto-highlighted on the current line to the current cursor position while typing, hiding what I'm typing in the process. this really gets annoying especially when i need to review a particu...
Xstarz
1

votes
0

answer
289

Views

Program type already present: net.sf.cglib.beans.BeanCopier$BeanCopierKey while building with gradle

I'm a noob in the android automation and I do my first steps (in windows). I have my first program in android studio 3.1 and Appium server. when I try to run the program I get: Program type already present: net.sf.cglib.beans.BeanCopier$BeanCopierKey Message{kind=ERROR, text=Program type already pre...
Shay
1

votes
0

answer
84

Views

how to implement qr code scanning through user's phone in andriod studio

main Activity.java import com.google.zxing.integration.android.IntentIntegrator; import com.google.zxing.integration.android.IntentResult; import java.security.MessageDigest; import javax.crypto.Cipher; import javax.crypto.spec.SecretKeySpec; public class qrscan extends AppCompatActivity { private...
Raj K
1

votes
0

answer
28

Views

Show AlertDialog after clicking on a listview

I have a SQLite database. I am fetching data from database and showing it in ListView. Now I need to create an AlertDialog box that appears after pressing on a ListView item. AlertDialog should show all information about that item. I am able to open an AlertDialog after pressing on a ListView item,...
1

votes
3

answer
1.2k

Views

new changes does not apply when building new APK Release

I am making an app using react native detached, I was able to successfully build my app and generated apk release for android, the problem is after that I added few more features, some more code I am not able to see these features on my phone it takes the old .apk. Question: What do I need to do in...
Mizlul
1

votes
0

answer
148

Views

After updating Android studio Stuck on Preparing Workplace, in background Scanning file indexing not allowing to cancel it

shows Codes Errors like in main activity After updating Android studio to latest version 3.1.2 Stuck on Preparing Workplace, in background Scanning file indexing for indefinite time not allowing to cancel it .... with many tags like these
Dhaval Jotaniya
1

votes
1

answer
74

Views

Facebook integration login and Googleplus integration login not working after proguard apk (release apk)

my app proguard-rules.pro file give following code -keep class com.facebook.android.* -keep class android.webkit.WebViewClient -keep class * extends android.webkit.WebViewClient -keepclassmembers class * extends android.webkit.WebViewClient { ; } -dontwarn sun.misc.Unsafe -dontwarn com.google.common...
1

votes
0

answer
30

Views

Android emulator on android studio

i have a problem with Android Studio 3.1 and his emulator. If i emulate the Marshmallow version or a version a higher version of 5.0 the emulator works fine. if i try to emulate Lollipop or a older version of android the emulator stuck: in kit-kat and jelly bean the button power of emulator don't r...
Nicolo' Dovico
1

votes
1

answer
623

Views

Program type already present: org.slf4j.impl.StaticMDCBinder

I am new developing Android Apps, I'm trying to run an application but I receive this error E/AndroidRuntime: FATAL EXCEPTION: main java.lang.ExceptionInInitializerError at app.unityudx.io.new_app.process.UnityApplication.onCreate(UnityApplication.java:59) at android.app.Instrumentation.callApplicat...
German

View additional questions