Category: Android

Get files from no_backup folder

Issue I need get files from no_backup folder in my production app ‚Äì I can’t lose these files. In Android Studio (file explorer) that folder has path: data/data/com.package.name/no_backup/my_files_list Is there way to do this? Phone is OnePlus 8 Pro ‚Äì I have that device and I can do everything, but any file explorer from google […]

Unable to connect to ADB server

Issue Previously I was able to connect Android Studio to Samsung Galaxy S4 and muz uPAD tablet. But then I encountered ADB problem. it says ADB is not responding. Now I cannot connect Android Studio to my tablet or phone.. I tried re-installing Android Studio and tablet driver all over again. But still no connection […]

Get a specific value of JSON data Kotlin

Issue I am trying to get a specific value from my JSON data. I could successfully call the entire json data,jsonOutput. But the thing is when I call a specific value in the jsonOutput, it shows me nullPointerError. I do not know why I lost the data when I call my data class. I marked […]

Android Studio: Where is the Compiler Error Output Window?

Issue When I ‘Run’ my project in Android Studio, in the ‘Messages’ window, I get: Gradle: FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ‘:play01:compileDebug’. > Compilation failed; see the compiler error output for details. * Try: Run with –stacktrace option to get the stack trace. Run with –info […]

ClassNotFoundException: android.view.OnBackInvokedCallback with Compose 1.2.0-alpha07

Issue Since updating to androidx.compose 1.2.0-alpha06 I’m unable to see any previews. I haven’t found similar issues anywhere. Preview renderer crashes with the following message java.lang.ClassNotFoundException: android.view.OnBackInvokedCallback at com.android.tools.idea.rendering.classloading.loaders.DelegatingClassLoader.findClass(DelegatingClassLoader.kt:81) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) at com.android.tools.idea.rendering.classloading.loaders.DelegatingClassLoader.loadClass(DelegatingClassLoader.kt:65) at androidx.compose.ui.tooling.ComposeViewAdapter$FakeOnBackPressedDispatcherOwner$1.<init>(ComposeViewAdapter.kt:744) at androidx.compose.ui.tooling.ComposeViewAdapter.<init>(ComposeViewAdapter.kt:743) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490) at org.jetbrains.android.uipreview.ViewLoader.createNewInstance(ViewLoader.java:352) at org.jetbrains.android.uipreview.ViewLoader.loadClass(ViewLoader.java:189) at org.jetbrains.android.uipreview.ViewLoader.loadView(ViewLoader.java:149) at […]

How to build cordova project with Kotlin

Issue I have a cordova project folder www already in progress. Build this and you will have an Android project. This will create a MainActivity.java file. I don’t know Java so I changed the file to MainActivity.kt and converted the internal code. But when I run it, it doesn’t run as error. Build cordova: cordova […]

How to enable autoformating Flutter project in Android Studio?

Issue For example, there is a sample flutter code. This code is not properly formatted. import ‘package:flutter/material.dart’; void main() => runApp(SampleApp()); class SampleApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( home: Scaffold( body: SafeArea( child: Container( child: const Text(‘123′),), // this line isn’t properly formatted ), ), ); } } I’ve heard […]

Committed changes on one branch break things on another branch

Issue Here’s a rundown of the issue: I am running my project on the Xcode simulator, everything is fine. I switch to a new branch to update react native. I run npm install and pod install. I try building it, it fails, no problem, there are some kinks to work out. I commit the changes […]