Respond to native deployment to Android 3 device error activity class does not exist

My application works fine on my simulator, so now I'm trying to put it on my phone. When I try to install, I get the following message

...
BUILD SUCCESSFUL
Total time: 15.578 secs

This build could be faster, please consider using the Gradle Daemon: http://gradle.org/docs/2.4/userguide/gradle_daemon.html
Starting the app (/usr/local/opt/android-sdk/platform-tools/adb shell am start -n com.ethicalfishing/.MainActivity)...
Starting: Intent { cmp=com.ethicalfishing/.MainActivity }
Error type 3
Error: Activity class {com.ethicalfishing/com.ethicalfishing.MainActivity} does not exist.

I understand that this error spoke about inactive applications, however, the solutions provided were either not relevant or not useful (or I did not understand them).

+4
source share
1 answer

I had the same problem. I found that build.gradle applicationId and AndroidManifest.xmlwere different.

build.gradle:

defaultConfig {
    applicationId "com.example.yourapp"
    minSdkVersion 16
    targetSdkVersion 22
    versionCode 1
    versionName "1.0"
    ndk {
        abiFilters "armeabi-v7a", "x86"
    }

This was a problem in my case.

+7
source

Source: https://habr.com/ru/post/1625123/


All Articles