Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error trying to start sample, no activity. #11

Open
victorcs85 opened this issue Jan 16, 2018 · 6 comments
Open

Error trying to start sample, no activity. #11

victorcs85 opened this issue Jan 16, 2018 · 6 comments

Comments

@victorcs85
Copy link

victorcs85 commented Jan 16, 2018

I can not start the test project. Displays the following error.

Error while executing: am start -n "net.idik.lib.cipher.so.sample/net.idik.lib.cipher.so.sample.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=net.idik.lib.cipher.so.sample/.MainActivity }
Error type 3
Error: Activity class {net.idik.lib.cipher.so.sample/net.idik.lib.cipher.so.sample.MainActivity} does not exist.

Error while Launching activity

Is there any special configuration for proguard?
I run in the 64 bits architecture device.

@linisme
Copy link
Owner

linisme commented Jan 17, 2018

this is wired. i try again and it works for me. the sample is a normal android project without proguard, and the error message shows the issues is not caused by this lib. maybe you could try sample2?

@victorcs85
Copy link
Author

I'm try and not work again!

@linisme
Copy link
Owner

linisme commented Jan 18, 2018

how about this ->HelloCipherSo

@Neuifo
Copy link

Neuifo commented Jan 19, 2018

same error log
both of your sample can't started by the same error:Activity class {..../MainActivity} does not exist.
as one of the message "net.idik.lib.cipher.so.sample/net.idik.lib.cipher.so.sample.MainActivity"
i guess you had duplicated package path

@hongInBlack
Copy link

HelloCipherSo also has this issue , when I build again.

@herisulistiyanto
Copy link

herisulistiyanto commented Mar 8, 2018

Hi, is there any update about this issue?
i'm facing exactly the same issue

android.intent.action.MAIN -c android.intent.category.LAUNCHER
Error while executing: am start -n "net.idik.lib.cipher.so.sample2/net.idik.lib.cipher.so.sample2.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=net.idik.lib.cipher.so.sample2/.MainActivity launchParam=MultiScreenLaunchParams { mDisplayId=0 mBaseDisplayId=0 mFlags=0 } }
Error type 3
Error: Activity class {net.idik.lib.cipher.so.sample2/net.idik.lib.cipher.so.sample2.MainActivity} does not exist.
Error while Launching activity

@MEiDIK the build is fine, but there is something wrong with push & install task,
this error issue caused by adb starting something which is not installed before . .

i try to install my APK from build directory using adb command

adb install -t -r my/path/file.apk
and yes, it works . . :
the problem is, it's not call
adb push path/file.apk /data/local/tmp/applicationId
adb shell pm install -t -r "/data/local/tmp/applicationId"
before starting
cmiiw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants