android-studio

Error in running flutter project which no permission

南楼画角 提交于 2020-06-11 01:03:10
问题 Launching lib/main.dart on Android SDK built for x86 in debug mode... [!] Gradle does not have execution permission. You should change the ownership of the project directory to your user, or move the project to a directory with execute permissions. Gradle task assembleDebug failed with exit code 1 Exited (sigterm) 回答1: I got the same error trying to execute flutter run on a mac. Apparently, in your flutter project, there is a file android/gradlew that is expected to be executable (and it wasn

Obfuscating the .aar files

柔情痞子 提交于 2020-06-10 12:44:46
问题 I have created the .aar file (containing the resources & drawables) of an Android library project using ./gradlew assemble I have enabled obfuscating by setting minify == true buildTypes { release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } However when I run the mentioned gradle command with minify enabled = true, I get java.io.IOException: The output jar is empty. Did you specify the proper '-keep' options? What does this error

How enable physical keyboard on Emulator in Android Studio? (Used to work)

和自甴很熟 提交于 2020-06-09 11:03:06
问题 I'm not sure what changed but the physical keyboard from my computer no longer works for the emulator (running kitkat in Nexus 5, x86). When i look in AVD at the device's advanced settings, there's nothing for a hardware keyboard. Where is this setting? 回答1: In the advanced settings of a virtual device in Android Studio 1.0.2 AVD Manager, there is actually a checkbox that allows to enable keyboard input without editing the config.ini by hand. Tools → Android → AVD Manager → pencil icon (shown

What is the meaning of alphabets in android studio logcat? [duplicate]

本小妞迷上赌 提交于 2020-06-09 07:17:09
问题 This question already has answers here : Android Log.v(), Log.d(), Log.i(), Log.w(), Log.e() - When to use each one? (7 answers) Closed 3 months ago . While running the application in android studio logcat is generated and there are alphabets at the beginning of every line. what is the meaning of those alphabets? ? 回答1: these alphabet is for various log options: see this link : Log option A is for ASSERT D is for DEBUG E is for ERROR I is for INFO V is for VERBOSE W is for WARN you can filter

Ionic Capacitor app give me lots of errors

天涯浪子 提交于 2020-06-08 18:29:24
问题 I'm on Windows 10 and I've created a Ionic 5.0.7 app with Capacitor 2.0.0. I use this command to build app: ionic build After, I use this command: npx cap sync And, to finish, I use this command to open Android Studio: npx cap open android The first problem come during building on Android Studio: org.gradle.api.reflect.ObjectInstantiationException: Could not create an instance of type com.novoda.release.internal.compat.gradle5_3.AndroidSoftwareComponentCompat_Gradle_5_3. Caused by: org.gradle

Ionic Capacitor app give me lots of errors

本小妞迷上赌 提交于 2020-06-08 18:27:12
问题 I'm on Windows 10 and I've created a Ionic 5.0.7 app with Capacitor 2.0.0. I use this command to build app: ionic build After, I use this command: npx cap sync And, to finish, I use this command to open Android Studio: npx cap open android The first problem come during building on Android Studio: org.gradle.api.reflect.ObjectInstantiationException: Could not create an instance of type com.novoda.release.internal.compat.gradle5_3.AndroidSoftwareComponentCompat_Gradle_5_3. Caused by: org.gradle

How do I remove Git from Android Studio project?

为君一笑 提交于 2020-06-08 03:35:10
问题 I'm developing my first project with Android Studio and can't quite get Git and GitHub configured properly. I'd like to completely remove my project from Git/Git from my project and start fresh. How can I do this? Also, there is no .git folder in my project folder, so where are my git files stored locally and how can I completely start over with Git and GitHub? I've set VCS to 'None' in Settings -> Version Control, but I don't think this removes Git. The directory shows as "Unregistered roots

How to get Nested Root Names for Present Value Firebase?

旧时模样 提交于 2020-06-01 06:52:26
问题 I am trying to get Root Node Names if specified myid value is present inside the node. For Example: Consider following structure -Likes -uid1 -postid1 -myid -othersid1 -othersid2 -postid2 -othersid1 -othersid2 -uid2 -postid3 -myid -othersid2 I want to get uid1 and postid1 rootnames if myid value is present inside the node. Similarly get uid2 and postid3 rootnames if myid present inside that node. I have written like this. public void checkNode() { DatabaseReference reference=FirebaseDatabase

How to get Nested Root Names for Present Value Firebase?

一笑奈何 提交于 2020-06-01 06:52:06
问题 I am trying to get Root Node Names if specified myid value is present inside the node. For Example: Consider following structure -Likes -uid1 -postid1 -myid -othersid1 -othersid2 -postid2 -othersid1 -othersid2 -uid2 -postid3 -myid -othersid2 I want to get uid1 and postid1 rootnames if myid value is present inside the node. Similarly get uid2 and postid3 rootnames if myid present inside that node. I have written like this. public void checkNode() { DatabaseReference reference=FirebaseDatabase

INSTALL_FAILED_MISSING_SHARED_LIBRARY Error When Trying To Run Android App

大城市里の小女人 提交于 2020-06-01 05:22:07
问题 I've never made an Android app before and I'm this isn't a great start. I made a blank project on Android studios as a test and tried to run the program on my Huawei P33 phone. When I attempt to build and install the program, I get the following messages; Failed to commit install session 389180709 with command cmd package install-commit 389180709. Error: INSTALL_FAILED_MISSING_SHARED_LIBRARY: Package couldn't be installed in /data/app/com.example.myapplication-segdjrVZj4KvtCNaJ5W5oQ==: