android-studio-2.2

Error:CreateProcess error=193, %1 is not a valid Win32 application

送分小仙女□ 提交于 2019-12-14 04:15:12
问题 My project was working fine,but now when i try to run my project i am getting following error and not able to run my project,can any one please help me with this? I am using Android Studio 2.2 Beta 3, and I have Windows 7 64 bit Error:CreateProcess error=193, %1 is not a valid Win32 application 回答1: Your installation is broken just reinstall Android Studio. In the simplest case just download the zip file and extract it in your current Android Studio directory. Just in case start scan your

Android Studio | How do I scale the image in ToggleButton?

倖福魔咒の 提交于 2019-12-14 02:21:52
问题 I have implemented ToggleButton to use image instead of text but how do I scale them I have tried using scaleType but not work ic_toggle.xml (I have tried using scaleType here too but not work) <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_checked="false" android:drawable="@drawable/ic_signal_p1"/> <item android:state_checked="true" android:drawable="@drawable/ic_signal_p2" /> </selector> fragment_deviceitem_list.xml <?xml version="1.0" encoding=

Android Studio Adding image asset not working

扶醉桌前 提交于 2019-12-13 21:25:38
问题 I'm trying to add an image in Android studio by right clicking on the drawable folder->new->Image Asset, I add an Action Bar and Tab Bar icon with a custom image and I click finish and it looks like its doing something but nothing appears in the drawable folder. I'm also unable to reference the new image name in any xml. What's funny is if I go to re-add this image, it says the image already exists and it will be overwritten. Am I doing something wrong? 回答1: As @Varun said, Before click on

Gradle project sync failed. Basic functionality - failed on Android Studio 2.2

我只是一个虾纸丫 提交于 2019-12-13 07:46:16
问题 I have Android Studio version 2.2 and when I open a new project, it says in the Messages tab: Error:C:\Users\Rooprai.gradle\caches\2.14.1\scripts-remapped\settings_4a7gjv1r4bbxs9f9pza41diyj\9ejwtyixtds2dlx9q4hqm4iap\cp_settings57408229\cache.properties (The system cannot find the file specified). At the top of the screen it says: Gradle project sync failed. Basic functionality (e.g. editing, debugging) will not work properly. Build Gradle: // Top-level build file where you can add

Why do I get this compiler error when I use lambda expressions?

孤街浪徒 提交于 2019-12-13 02:26:09
问题 I recently migrated my Nougat project to Java 8 per the official instructions and replaced some OnClickListeners with lambda expressions, but I get this error when I build the apk: An exception has occurred in the compiler (1.8.0_112). Please file a bug against the Java compiler via the Java bug reporting page (http://bugreport.java.com) after checking the Bug Database (http://bugs.java.com) for duplicates. Include your program and the following diagnostic in your report. Thank you. com.sun

Failed to resolve: com.google.android.gms:play-services-location:9.6.1

旧街凉风 提交于 2019-12-13 00:07:02
问题 Having updated to AS v2.2.2 I can no longer resolve the Google Play Services maps and location facets. The message I receive is; Error:(54, 27) Failed to resolve: com.google.android.gms:play-services-maps:9.6.1 Install Repository and sync project /Documents/workspace//Polaris/build.gradle">Show in File Show in Project Structure dialog The install link does not work and I have uninstalled AS and reinstalled as well as having uninstalled Play Services and reinstalled the latest (v37 at the time

Android click Highlight issue: After updating to Android studio 2.2 preview 3

随声附和 提交于 2019-12-12 15:14:17
问题 I am having this weird issue, for android OS below lollipop. When i click on Toolbar option menu or navigation drawer etc i am getting weird black edges as a highlight. Please see attached pic as an example here is my theme for this activity (using AppCompactActivity as Base Activity) ` <style name="NoActionBar" parent="Theme.AppCompat.Light.NoActionBar"> <!-- Customize your theme here. --> <item name="colorPrimary">@color/colorPrimary</item> <item name="colorPrimaryDark">@color

Unable to update from version 2.1.1 to 2.2 preview in android studio

白昼怎懂夜的黑 提交于 2019-12-12 12:40:34
问题 I am using android studio version 2.1.1 from developer channel. I got update notification from android 2.2 preview in canary channel. But I am not able to directly update 2.1.1 to 2.2 preview. It asks for separate download of version 2.2 preview of android studio. Can anyone help if i don't want to separately download android studio 2.2 preview and want to directly update over android studio 2.1.1? Here is attached screenshot for the same. If i click on Download button it takes me to the

How can i match Fingerprint from sqlite data base?

你说的曾经没有我的故事 提交于 2019-12-12 05:39:55
问题 I want to create one application which can match fingerprint form my server existing fingerprints, on my server side some fingerprints saved with the help of external fingerprint scanner. can i match with saved fingerprint? 回答1: Match in database You cannot match fingerprint in database, please read this : https://en.wikipedia.org/wiki/Fingerprint_recognition You have to match templates, thanks to a specific algorithm. To match on server, you need AFIS solution: https://en.wikipedia.org/wiki

Android Studio 2.2 Preview 1 shows many errors in the IDE, but compilation is OK?

☆樱花仙子☆ 提交于 2019-12-12 04:10:35
问题 i updated Android Studio 2.2 Preview 1, with oracle JDK 8u91. in the IDE, many errors are shown, such as: unused import (gray underline), cannot find reference (red characters), etc. but the compilation to APK is ok... anyone any ideas? 来源: https://stackoverflow.com/questions/37336621/android-studio-2-2-preview-1-shows-many-errors-in-the-ide-but-compilation-is-ok