Category : android-studio

Say I have this snippet in a kotlin file: typealias GoodThing = Bad.Thing fun thing(): Bad.Thing = GoodThing @Deprecated("Deprecated") sealed class Bad { @Deprecated("Deprecated") object Thing: Bad() } In Android Studio Arctic Fox, I get a deprecated warning on GoodThing in this line: fun thing(): Bad.Thing = GoodThing Which reads: typealias GoodThing = Bad.Thing’ uses ..

Read more

android.view.WindowManager$BadTokenException com.xxxxx.xxxx.deeplink$xWebViewClient.onReceivedError i have a webviwe with onReceivedError function as i will explain it in my code below and iam getting the above errors how can i slove it ? @Override public void onReceivedError(WebView view, int errorCode, String description, String failingUrl) { ViewGroup viewGroup = findViewById(android.R.id.content); View dialogView = LayoutInflater.from(facebook.this).inflate(R.layout.errror_dialog, viewGroup, false); Button tryagain = ..

Read more

I’m creating this post as I can’t solve my problem with existing ones. I’m saving the current time on Firestore with : Map<String, Object> docData = new HashMap<>(); docData.put("Starting date", new Timestamp(new Date()).toDate()); docData.put("Quantification", 3.14569); userManager.getUsersCollection().document(userManager.getCurrentUser().getUid()) .collection("habits") .document(selectedHabit) .set(docData) Then, I would like to get back the timestamp and use it to count since how ..

Read more

When I opened android studio, an alert pop up with this message: "Design editor is under available until a successful project sync" with this error:` > Could not get resource ‘https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/7.0.2/gradle-7.0.2.pom’. > Could not GET ‘https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/7.0.2/gradle-7.0.2.pom’. > The server may not support the client’s requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure ..

Read more

Hello im trying to put a TextView in my app, but when i drag it this happens. Ive added the style and layout xmls Please forgive me if there is any newbie errors, im kinda new to this My theme.xml file: <resources xmlns:tools="http://schemas.android.com/tools"> <!– Base application theme. –> <style name="AppTheme" parent="@style/Theme.AppCompat.DayNight.NoActionBar" /> <style name="AppBgTheme" parent="@style/AppTheme"> ..

Read more

Hey I am Using this Code But There Is A Problem, My File Is In my android device Full Path = "Android/data/File.txt"; The Problem Is Whenever i tried to run this code it gives me an error "E/Parcel: Reading a NULL string not supported here." "E/libEGL: Invalid file path for libcolorx-loader.so" What Should i do ..

Read more

Error: Could not parse the Android application Module’s Gradle Config I’ve seen quite a lot of people getting this error, but it seems that they could solve it by upgrading their build tool version, or by updating google-services. I’ve done all that and haven’t been able to make it work so far. build gradle(app) // ..

Read more