Programming Tutorials

Android Tutorials

1. Keep your android phone awake while debugging

By: Gren : 2023-04-06

Description: You can adjust the sleep settings of your Android device to keep it from going to sleep while debugging your Expo app. Here's how you can do it


2. compileSdkVersion vs buildToolsVersion in app/build.gradle

By: Ignatius : 2023-04-03

Description: compileSdkVersion and buildToolsVersion are two different properties that are used in the build.gradle file of an Android project


3. gradle build failed Caused by: java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema

By: Ignatius : 2023-04-03

Description: The error "Caused by: java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema" occurs when you are using a Java version that does not include the required class definition for javax/xml/bind/annotation/XmlSchema


4. Gradle, npm, react-native - How are they related?

By: Farida : 2023-04-03

Description: Gradle is a build automation tool that is commonly used in Java and Android development. It is designed to manage the dependencies and build processes of projects.


5. Emulator: glTexImage2D: got err pre :( 0x506 internal 0x8058 format 0x1908 type 0x1401

By: Farida : 2023-04-03

Description: The error message <code>glTexImage2D: got err pre :( 0x506 internal 0x8058 format 0x1908 type 0x1401</code> is related to OpenGL, which is used by the Android emulator to render graphics.</p> <p>Here are some steps you can try to resolve the issue


6. Emulator: WARNING | *** No gRPC protection active, consider launching with the -grpc-use-jwt flag.***

By: Farida : 2023-04-03

Description: The warning message <code>No gRPC protection active, consider launching with the -grpc-use-jwt flag</code> indicates that the gRPC traffic between the emulator and the host machine is not secure. By default, gRPC traffic is not encrypted or authenticated, which can be a security risk.


7. ./gradlew assembleDebug '.' is not recognized as an internal or external command, operable program or batch file.

By: Farida : 2023-04-03

Description: The error message you're seeing suggests that the <code>./gradlew</code> command is not recognized by your system


8. 'adb' is not recognized as an internal or external command, operable program or batch file.

By: Farida : 2023-04-03

Description: This error message suggests that your system is unable to locate the <code>adb</code> executable file, which is a part of the Android SDK platform tools.


9. Performing Streamed Install adb: failed to install app buildoutputsapkdebugapp-debug.apk: Exception occurred while executing 'install': android.os.ParcelableException: java.io.IOException: Requested internal only, but not enough space

By: Gren : 2023-04-03

Description: The error message indicates that there was not enough space to install the app. You might need to free up some space on the device or emulator before trying to install the app again


10. Is it safe to delete userdata-qemu.img userdata-qemu.img.qcow2 files

By: Gren : 2023-04-03

Description: The <code>userdata-qemu.img</code> and <code>userdata-qemu.img.qcow2</code> files are disk images used by the Android emulator to store the user data and app data on the virtual device