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
A new session could not be created. (Original error: Activity used to start app doesn't exist or cannot be launched! Make sure it exists and is a launchable activity) #2981
Comments
Most capabilities were renamed in Appium 1.0 (e.g. |
Don't know about the apk info tool above, but you can always get that info using the aapt tool from Android SDK with the following command: Note: You shouldn't need to specify appPackage, appActivity, etc. since Appium should be able to extract those from the apk using the method above anyway. |
I got the same issue while I am learning Android application testing (.apk). if your apk works on the emulator by manually getting on to avd then no issues with .apk and the problem might something else. My guess would be your .apk is corrupted and unreadable. Please get another working .apk and give a try, before you do so, make sure to copy activity and package as exactly you see after executing command "aapt" from command line. Note: Give complete path for the activity, see below ex: public class AppiumExampleTest {
If it works, please update here so it is going to help others. |
Still am hitting the same issue... This is the code am trying to run IWebDriver driver;
Using aapt command I got below information about the apk. D:\android\android\sdk\build-tools\android-4.4.2>aapt list -a D:\android\android Resource table: Android manifest: |
issue got resolved after I used appium version in the capability capabilities.SetCapability("appium-version", "1.1"); thanks |
Below code installs the app but failed to open it in emulator. import org.openqa.selenium.WebDriver; public class WordPad {
} Appium Console error:
|
@RanjitGupta please do not go back to closed issues like that, if you have a new problem, open a new issue, and eventually reference it. |
import java.io.File; import org.openqa.selenium.remote.DesiredCapabilities; import io.appium.java_client.android.AndroidDriver; public class DesiredCapaTest {
public void f() throws MalformedURLException
} } while running above code in eclipse getting error as "A new session could not be created. (Original error: zipAlignApk failed. Error: Command failed: C:\WINDOWS\system32\cmd.exe /s /c "C:\Android\sdk\build-tools\25.0.1\zipalign.exe -f 4 G:\workspace\AppiumIntro\src\figaro-release.apk C:\Users\ASHISH~1\AppData\Local\Temp\117028-9348-xb9apu\appium.tmp" Please help me on this.... |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hi,
I am getting error as "A new session could not be created. (Original error: Activity used to start app doesn't exist or cannot be launched! Make sure it exists and is a launchable activity)"
Can anyone let me know what might go wrong here
IWebDriver driver;
Error logs
Starting Node Server
The text was updated successfully, but these errors were encountered: