Open MinionAttack opened 1 year ago
Same issue
I changed the FragmentContainerView in activity_main.xml to fragment and it worked.
First, you should update jcenter()
into mavenCentral()
in the build.gradle(Project level)
Then check about the versions of libraries as follow
ext {
// Versions for all the dependencies we plan to use. It's particularly useful for Kotlin and
// navigation where the versions of the plugin need to be the same as the version of the
// library defined in the app Gradle file
version_gradle = "4.0.1"
version_core = "1.9.0"
version_kotlin = "1.3.72"
version_kotlin_coroutines = "1.6.4"
version_lifecycle_extensions = "2.2.0"
version_moshi = "1.14.0"
version_navigation = "2.5.3"
version_constraint_layout = "2.1.4"
version_glide = "4.15.1"
version_retrofit = "2.9.0"
version_retrofit_coroutines_adapter = "0.9.2"
version_recyclerview = "1.2.0-alpha05"
version_material = "1.1.0-alpha04"
version_play_services = "17.0.0"
}
After that, you should increase the targetSdkVersion
and compileSdkVersion
to 33 in the build.gradle(Module:app)
You could also modify the way defining the plugins as follow
plugins {
id 'com.android.application'
id 'kotlin-android'
id 'kotlin-android-extensions'
id 'kotlin-kapt'
id 'androidx.navigation.safeargs'
}
After that, in the AndroidManifest.xml you need to ask for ACCESS_COARSE_LOCATION
as it's required from Android API 33
and add android:exported="true"
to the activity
If you don't add any fonts in the app yet as it's the starter code then you must delete the meta-data
<meta-data
android:name="preloaded_fonts"
android:resource="@array/preloaded_fonts" />
Are you sure that you inflate the fragment correctly?
The starter code inflates the fragment without using data binding or view binding.
After you use data binding the onCreateView()
should return binding.root
I think after you follow these steps it should work for you.
I changed the FragmentContainerView in activity_main.xml to fragment and it worked.
This solved the app crash for me. Thanks.
Hi,
After downloading the code from the
master
,final
orstarter-code
branches the application does not start. I'm going to write about themaster
branch, as this is the branch I use to follow the videos.home_fragment
,fragment_gdg_list.xml
andlist_item.xml
there is an incorrect style identifier:"@dimen/spacing_normal"
must be changed to"@dimen/normal_spacing"
How can I fix this problem so that the application works?
Regards.