android-studio

I can't see changed files on “commit changes” screen in Android Studio

∥☆過路亽.° 提交于 2020-06-01 03:09:56
问题 When I go to VCS>Commit changes , I see the following screen: I have probably pressed on some button or something by mistake, and since then I can't commit the whole project, just one file (the .iml file). Why can't I see any other files that are in my project?. 回答1: First Things First As mentioned in the answer you’ve got before, you are not able to commit the whole project as you said. You are only able to commit changes that haven’t been recorded yet. Bearing that in mind, if you see that

I can't see changed files on “commit changes” screen in Android Studio

为君一笑 提交于 2020-06-01 03:07:02
问题 When I go to VCS>Commit changes , I see the following screen: I have probably pressed on some button or something by mistake, and since then I can't commit the whole project, just one file (the .iml file). Why can't I see any other files that are in my project?. 回答1: First Things First As mentioned in the answer you’ve got before, you are not able to commit the whole project as you said. You are only able to commit changes that haven’t been recorded yet. Bearing that in mind, if you see that

Gradle sync failed: Could not create parent directory for lock file

冷暖自知 提交于 2020-06-01 01:01:52
问题 I checked out a git repository in android studio, but I'm in trouble with Gradle sync failed error. When project wants to build, the android studio raise an error like as following: Gradle sync failed: Could not create parent directory for lock file C:\Users\Mohammad\.gradle\wrapper\dists \gradle-4.10.1- all\455itskqi2qtf0v2sja68alqd\gradle-4.10.1-all.zip.lck I saw some answers to the other almost same problems, but none of them help. Also I deleted cashes in .gradle directory according above

Get Dialog's on click listener into my Activity from separate Dialog class

萝らか妹 提交于 2020-05-31 03:57:48
问题 I have a Dialog class where I have kept my dialogs. Now the problem is that I want to get the View click listeners of my dialog back in my activity. I know this can be done by writing an interface but is there any other OOP way of doing it? My Dialog class: public class Dialogs{ public void testCompletionDialog() { final Dialog dialog = new Dialog(context); dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); dialog.setCancelable(true); dialog.setContentView(R.layout.test_complete_dialog);

Problem with the emulator since the update

隐身守侯 提交于 2020-05-31 03:48:08
问题 I have had a problem with my emulator Android Studio for a few days, when I try to compile my code, my event log marks this: 09:13 Emulator: socketTcpLoopbackClientFor: error: fd 44088 above FD_SETSIZE (32768) 09:13 Emulator: socketTcpLoopbackClientFor: error: fd 44088 above FD_SETSIZE (32768) 09:13 Emulator: emulator: ERROR: AdbHostServer.cpp:102: Unable to connect to adb daemon on port: 5037 What can i do to fix this thank you in advance 回答1: Yes, this issue is seen in version 30.0.12 of

R.txt': The data is invalid. (13)

二次信任 提交于 2020-05-30 11:35:51
问题 I am able to gradle build successfully but while running the app getting below Error. error: failed writing to 'D:\ ...\Projects\DineNow\GitCode\DineNow\app\build\intermediates\symbols\debug\R.txt': The data i and failed the app:processDebugResources while run-app into device. Here are the details logs org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:processDebugResources'. at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions

R.txt': The data is invalid. (13)

我只是一个虾纸丫 提交于 2020-05-30 11:31:06
问题 I am able to gradle build successfully but while running the app getting below Error. error: failed writing to 'D:\ ...\Projects\DineNow\GitCode\DineNow\app\build\intermediates\symbols\debug\R.txt': The data i and failed the app:processDebugResources while run-app into device. Here are the details logs org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:processDebugResources'. at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions

How do I open a sqflite database file in DB Browser for SQLite?

戏子无情 提交于 2020-05-30 09:40:37
问题 I have a Flutter/Dart application that I am coding using Android Studio. I use a database called envirodatabase.db with the sqflite package. I want to open the database in DB Browser for SQLite on my computer, but the only way it lets me do that is through saving a copy of the file, not the file itself. How do I open the original file in DB Browser for SQLite? Here is my Device File Explorer What I tried doing was I right clicked > Save As in the Device File Explorer where my app's database

Error when importing Sceneform Asset for obj and gltf file

一曲冷凌霜 提交于 2020-05-29 11:58:08
问题 I get this error while importing Sceneform Asset: Gradle build failed with new import rules. Would you like to revert the changes? and the options are Revert and Keepbroken gradle changes. A error messege also pops up: Error: java.lang.RuntimeException: java.lang.NoSuchMethodError: com.android.tools.idea.templates.recipe.RecipeExecutor.append(Ljava/io/File;Ljava/io/File;)V 回答1: I think it is a problem with Android studio 3.6, I reverted to 3.5.1 and the import worked fine. With 3.6 I got the

Could not download kotlin-compiler-embeddable.jar

旧街凉风 提交于 2020-05-29 03:58:30
问题 I am trying to run my project in android studio , but I am getting following issue. Could not download kotlin-compiler-embeddable.jar (org.jetbrains.kotlin:kotlin-compiler-embeddable:1.2.71): No cached version available for offline mode It would be great , if I got the solution.Looking forward for your helpful suggestions 回答1: Gradle is in offline mode. Open the Preferences window by clicking File > Settings (on Mac, Android Studio > Preferences). In the left pane, click Build, Execution,