android-studio-2.3

Android Studio 2.3.3 stucks when first run

限于喜欢 提交于 2019-12-08 16:14:36
问题 I downloaded Android Studio 2.3.3 for Linux and unzipped the content to /usr/local then $ cd android-studio/bin Edited the file idea.properties and appended a following line to it: disable.android.first.run=true Then launched Android Studio: $ sudo sh studio.sh Looking in classpath from com.intellij.util.lang.UrlClassLoader@1a7cec2 for /com/sun/jna/linux-x86/libjnidispatch.so Found library resource at jar:file:/usr/local/android-studio/lib/jna.jar!/com/sun/jna/linux-x86/libjnidispatch.so

Android Studio 2.3 Error:Unable to load class 'com.google.common.collect.ImmutableSet'

非 Y 不嫁゛ 提交于 2019-12-08 15:15:32
Everybody! Suddenly, when I opened my exists project I'd got error: Error:Unable to load class 'com.google.common.collect.ImmutableSet'. Possible causes for this unexpected error include: Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.) Re-download dependencies and sync project (requires network) The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem. Stop Gradle build processes (requires restart) Your project may be using a third-party plugin which is not compatible with the other

IllegalArgumentException: Unable to locate adb in Android Studio v2.3

无人久伴 提交于 2019-12-07 01:47:00
问题 Does anyone know how to fix this? IllegalArgumentException: Unable to locate adb I installed android studio v2.3 and it won't let me run my app saying the error. I searched online and said to click the Launch Standalone Sdk manager but I am unable to locate it. 回答1: I also encountered this problem, when I tried to move an Android project from one computer to another. Since I have Android Studio 2.3 I don't have the option to run the standalone SDK-manager (or at least, I don't see any button)

How can I set an ImageView's position dynamically in Constraint Layout

时光毁灭记忆、已成空白 提交于 2019-12-06 11:02:03
问题 I have a dynamically created ImageView in one Constraint Layout. Once I run the app the ImageView is showing on left top corner because no position is defined for the ImageView. How can I set the position(let's say CENTER) of the ImageView dynamically. I have written below code ConstraintLayout layout = (ConstraintLayout) findViewById(R.id.constraintLayout); ImageView imageView = new ImageView(ChooseOptionsActivity.this); imageView.setImageResource(R.drawable.redlight); layout.addView

Error: Permissions not granted… react-native-image-picker

随声附和 提交于 2019-12-06 05:11:37
问题 I am trying to upload an image from internal memory in our client app, using react-native-image-picker@^0.26.4 And after executing the following sample snippet i got the response in an unexpected way. ImagePicker.showImagePicker(options, response => { console.log("Response = ", response) if (response.didCancel) { console.log("User cancelled image picker") } else if (response.error) { console.log("ImagePicker Error: ", response.error) } else if (response.customButton) { console.log("User

Slice signatures are inconsistent with android studio default run

旧时模样 提交于 2019-12-05 09:42:15
问题 I've configured gradle for signing with: android { ... signingConfigs{ debug { storeFile file("..."); storePassword '...' keyAlias '...' keyPassword '...' } } } Now when I run the Gradle task installDebug the app is signed and installed correctly and I can run the app as expected. But when I run the app module (android studio default run, which is much preferred for debugging). I get the message: Failed to finalize session : INSTALL_FAILED_INVALID_APK: /data/app/vmdl2083307194.tmp/1_slice__

Android studio failed to build tools after updating to 3.0 from 2.3 stable channel

醉酒当歌 提交于 2019-12-05 07:26:36
问题 I just updated my android studio from 2.3 to 3.0 from stable channel. But I was getting this error Failed to find Build Tools revision 26.0.2 Install Build Tools 26.0.2 and sync project I do tried to install this but still failing to resolve 回答1: Open SDK manager to check installed buildtool revision version: for example, I have version 27.0.3 installed. Then add buildToolsVersion '27.0.3' in build.gradle : 回答2: You can install any version of build tools manually. Please go to Preferences >

IllegalArgumentException: Unable to locate adb in Android Studio v2.3

穿精又带淫゛_ 提交于 2019-12-05 04:51:38
Does anyone know how to fix this? IllegalArgumentException: Unable to locate adb I installed android studio v2.3 and it won't let me run my app saying the error. I searched online and said to click the Launch Standalone Sdk manager but I am unable to locate it. Leon K. Görges I also encountered this problem, when I tried to move an Android project from one computer to another. Since I have Android Studio 2.3 I don't have the option to run the standalone SDK-manager (or at least, I don't see any button). On this website http://m.blog.csdn.net/article/details?id=51204114 I found the solution to

Android App not loading in Emulator after Android Studio 2.3 Update

荒凉一梦 提交于 2019-12-05 02:36:18
I have just uploaded my Android Studio version to 2.3, and I am now having problems testing my app in my emulator. It is a Nexus 5X emulator with Android 7.0 Nougat loaded on it (API 24), with an ABI: armeabi-v7a (I have an AMD processor, so to the best of my knowledge I can only use this). Before, it was a bit slow and would sometimes come up with a 'Not Responding' error, but clicking 'Wait' would always do the trick. After the Android Studio update, when I press 'Run', it opens up & boots the emulator. However, once booted, it gets stuck on the "Launching App - Installing APKs" process. It

Android studio 2.3 canary missing 'Launch Standalone SDK Manager' option in 'SDK Manager'

给你一囗甜甜゛ 提交于 2019-12-04 03:54:40
I inadvertently accepted android studio's upgrade suggestion to 2.3 (canary), although I had always had it set to check for the developer channel, not canary, somehow that got switched. Now I no longer have a 'Launch Standalone SDK Manager' option in my 'SDK Manager' window. I liked the standalone manager for various reasons, including that it suggested what needed to be downloaded and upgraded. The regular sdk manager lists a lot of things I expect I don't need like 'CMake', 'LLDB', 'Constraint Layout for Android', 'Solver for ConstraintLayout', 'Google Play APK Expansion Library' ('Google