skip to Main Content

Android Studio – Module source root type com.android.tools.idea.gradle.project.facet.ndk.NativeSourceRootType is not registered as JpsModelSerializerExtension

I'm new to here. Sorry for my bad English. I just tried to build empty project named Game Activity (C++) using Android Studio Meerkat | 2024.3.1 Canary 2 and got this error. ---------------------------------------------------------------------------------- java.lang.IllegalStateException: Module source root type com.android.tools.idea.gradle.project.facet.ndk.NativeSourceRootType@xxxxxx is…

VIEW QUESTION

Android Studio – Repeat android animation with multiple translations and durations offsets

I want to an animation that infinitely moves images up and down. However when I run my code, the animation only happens once. This is the animation xml: <?xml version="1.0" encoding="utf-8"?> <set xmlns:android="http://schemas.android.com/apk/res/android" android:interpolator="@android:anim/linear_interpolator" android:repeatCount="3" android:repeatMode="restart"> <!-- move down -->…

VIEW QUESTION

Could not build flutter project after upgrading android studio to ladybug

getting this error : A problem occurred configuring project ':flutter_plugin_android_lifecycle'. Could not open proj generic class cache for build file 'C:UsersDELLAppDataLocalPubCachehostedpub.devflutter_plugin_android_lifecycle-2.0.23androidbuild.gradle' (C:UsersDELL.gradlecaches7.6scripts63bprwnkn9zt5gyu8l1lw245x). BUG! exception in phase 'semantic analysis' in source unit 'BuildScript' Unsupported class file major version 65 Failed to…

VIEW QUESTION

Change the image of an ImageView by code in Android Studio

I'm trying to get an ImageView by code It's declared that way in my XML: <ImageView android:id="@+id/exo_image" android:layout_width="100dp" android:layout_height="100dp" android:src="@color/cardview_light_background"/> And I'm setting it by code that way: val bmp = BitmapFactory.decodeFile(mediaItem!!.mediaMetadata.artworkUri!!.path) view.setImageBitmap(null) if (bmp != null) { view.setImageBitmap(bmp) Log.d("TEMPS",…

VIEW QUESTION
Back To Top
Search