2024-12-19 16:59:30: Launching app on 'vivo V2205'.
/system/bin/sh: syntax error: unexpected '('
Open logcat panel for vivo V2205 (10DCAM0EKS000ED)
I’ve compiled the app on a phone in Android Studio (the app is using Java), but the app I successfuly running is not showing directly in the phone and show /system/bin/sh: syntax error: unexpected '('
. But this doesn’t happen in my friend’s PC in same app code, only in my PC.
So how do I solve this to make when the app I compiles and installed, shows directly after successfuly compiled?
4
This could be an issue with ADB .
Check the version of ADB in your system and in your friends.
And if you are using the android studios run command to launch the app on device, try once with ADB explicitly.
Let’s assume your app’s package name is “com.example.myapp” and the main activity is “com.example.myapp.MainActivity”. The command to launch the app would be: adb shell am start -n com.example.myapp/.MainActivity
Jayesh Kumar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.