Skip to content Skip to sidebar Skip to footer

Android: Navigation Drawer Activity - "the Following Classes Could Not Be Instantiated:"

When i make a new navigation drawer activity in android studio i get the following error... Rendering Problems The following classes could not be instantiated: - android.support.v

Solution 1:

You'll have to include the v4 support libraries in the dependencies.

Check this page for detailed info.

Solution 2:

right click your project >> go to android tools >> click add support library.

Solution 3:

Paste this code segment into your build.gradle

configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
    def requested = details.requested
    if (requested.group == "com.android.support") {
        if (!requested.name.startsWith("multidex")) {
            details.useVersion "26.+"
        }
    }
}}

Post a Comment for "Android: Navigation Drawer Activity - "the Following Classes Could Not Be Instantiated:""