Skip to content Skip to sidebar Skip to footer

Unable To Instantiate Activity Component Info Class Not Found Exception Android

My app is deployed directly to any device without any exception. But when .apk is installed it throws the following exception. Secondly it runs fine with Nougat 7.0 and above versi

Solution 1:

As Discussion in chat i found that, Your manual way of generating APK is not generating the correct APK, so i am Suggesting these way to generating APK for Manual Install:

For Debug Build

  • Delete you build folder inside the App folder.
  • Goto Build>Build APk. it will generate .apk file in your app>build>output>apk directory.
  • COPY it your device and install manually.

For Release Build

  • Delete you build folder inside the App folder.
  • Goto Build>Generate Signed APk and provide recomended Details, make sure your Build type : release and have checked both signature version v1(jar signature) and v2(full apk signature) . it will generate .apk file in your app>build>output>apk directory.
  • COPY it your device and install manually.

Solution 2:

At first "Clean" and "Sync Project with Gradle Files". Then run your code

Solution 3:

Replace this

<activity
        android:name="amitechnologies.products.apps.equalizeraudioplayer.v3.view.LoaderOfAllMediaFiles"         
</activity>

with this

 <activity
        android:name=".amitechnologies.products.apps.equalizeraudioplayer.v3.view.LoaderOfAllMediaFiles"         
 </activity>

The reason is you have missed a dot(.) in android:name

Solution 4:

If your minSDK version less than 21 you need to do the following for multidex

build.gradle

android {
    defaultConfig {
        ...
        minSdkVersion 15 
        targetSdkVersion 25
        multiDexEnabled true
    }
    ...
}

dependencies {
  compile 'com.android.support:multidex:1.0.1'
}

AndroidManifest.xml

<?xml version="1.0" encoding="utf-8"?><manifestxmlns:android="http://schemas.android.com/apk/res/android"package="your_app_package"><applicationandroid:name="android.support.multidex.MultiDexApplication" >
        ...
    </application></manifest>

Solution 5:

Delete your Build folder inside the app folder and rebuild your project

Post a Comment for "Unable To Instantiate Activity Component Info Class Not Found Exception Android"