android-studio-3.1.3

Saving Files in Android - For Beginners (Internal / External Storage)

与世无争的帅哥 提交于 2020-07-18 05:52:31
问题 I'm very new to android development and I need a beginners help please... I am creating an app that should have 2 directories, a Databases directory and an Images directory, just like Whatsapp has. I want to see those directories in the File Manager when I'm browsing my phone, just like you see other apps folders. I tried everything I found here, to create it in the Internal storage and in the External storage from code. The folders seem to be created, but when I browsed my phone's File

Missing Android platform(s) detected: 'android-27'

五迷三道 提交于 2020-03-01 05:55:39
问题 I update my android studio to 3.1.3 but I cannot use platform 27 now when I click "install platform and sync project" it pop up a download window and then disappear. But the error still exist. SDK Platforms is following: expand SDK: 回答1: For anyone get this issue, you should uninstall Android SDK 27 then re-install it from SDK download manager. 回答2: @TrongHiue's answer didn't work for me. (Mac user, Android 3.2.1). I had to close the IDE, go to Library/Android/sdk and rename the 'sdk' folder

Android Studio- Face detection failed. E/CameraSource: Exception thrown from receiver

♀尐吖头ヾ 提交于 2020-01-04 10:59:13
问题 I'm trying to get current frame as a Bipmap I'm running into these errors: 09-03 08:12:33.353 28008-28204/com.google.android.gms.samples.vision.face.facetracker E/CameraSource: Exception thrown from receiver. java.lang.ArrayIndexOutOfBoundsException at android.graphics.Bitmap.checkPixelsAccess(Bitmap.java:1492) at android.graphics.Bitmap.getPixels(Bitmap.java:1433) at com.google.android.gms.samples.vision.face.facetracker.FaceTrackerActivity$MyFaceDetector.detect(FaceTrackerActivity.java:318)

Android studio 3.1.3 not show any error when i use deprecated api

China☆狼群 提交于 2019-12-23 06:06:32
问题 I use android studio 3.1.3 . When i write deprecated method (for example: Spanned a= Html.fromHtml("<b>hello</b>"); android studio code editor not show any error or suggestion and not highlighting deprecated methods like android studio 2.3!!! and when i rebuild(compile) project this give me below error. ... \MainActivity.java: uses or overrides a deprecated API. Recompile with -Xlint:deprecation for details Please help me. My build.gradle (Module:app) : apply plugin: 'com.android.application'

Android Studio 3.1.3 having issues with Constraint layout

夙愿已清 提交于 2019-12-09 03:06:34
问题 I'm trying to start a new project here but this problem is appearing. I can run the project and deploy it in an emulator but this Render problem and Using private resources is ticking me off. I've already tried all the possible solutions found in the internet but it just can't solve the problem <?xml version="1.0" encoding="utf <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools

Android Studio 3.1.3 having issues with Constraint layout

*爱你&永不变心* 提交于 2019-12-01 03:55:46
I'm trying to start a new project here but this problem is appearing. I can run the project and deploy it in an emulator but this Render problem and Using private resources is ticking me off. I've already tried all the possible solutions found in the internet but it just can't solve the problem <?xml version="1.0" encoding="utf <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match