APP_PACKAGE not found in TestNG test code

I’m using eclipse mars 2 on windows 10 32 bit, but when trying to write test code under TestNG, not found the any APP_XXXX (Ex: APP_PACKAGE, APP_ACTIVITY), what is the solution??

For better understanding please see the screen shot.

Use AndroidCapabilityType.

1 Like

i don’t have deep knowledge abut it, so could you please explain me, i don’t get you :frowning:

I’m assuming you’re using the latest version of the Appium client Java library.

The constants you are looking for were moved into an interface called AndroidCapabilityType. See the Javadocs.

1 Like