Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      Sunshine And March Vibes (2025 Wallpapers Edition)

      May 16, 2025

      The Case For Minimal WordPress Setups: A Contrarian View On Theme Frameworks

      May 16, 2025

      How To Fix Largest Contentful Paint Issues With Subpart Analysis

      May 16, 2025

      How To Prevent WordPress SQL Injection Attacks

      May 16, 2025

      Microsoft has closed its “Experience Center” store in Sydney, Australia — as it ramps up a continued digital growth campaign

      May 16, 2025

      Bing Search APIs to be “decommissioned completely” as Microsoft urges developers to use its Azure agentic AI alternative

      May 16, 2025

      Microsoft might kill the Surface Laptop Studio as production is quietly halted

      May 16, 2025

      Minecraft licensing robbed us of this controversial NFL schedule release video

      May 16, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      The power of generators

      May 16, 2025
      Recent

      The power of generators

      May 16, 2025

      Simplify Factory Associations with Laravel’s UseFactory Attribute

      May 16, 2025

      This Week in Laravel: React Native, PhpStorm Junie, and more

      May 16, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      Microsoft has closed its “Experience Center” store in Sydney, Australia — as it ramps up a continued digital growth campaign

      May 16, 2025
      Recent

      Microsoft has closed its “Experience Center” store in Sydney, Australia — as it ramps up a continued digital growth campaign

      May 16, 2025

      Bing Search APIs to be “decommissioned completely” as Microsoft urges developers to use its Azure agentic AI alternative

      May 16, 2025

      Microsoft might kill the Surface Laptop Studio as production is quietly halted

      May 16, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Development»Not able to run application through emulator in mac

    Not able to run application through emulator in mac

    June 26, 2024

    Code:

    public class AppDAta {
    public static URL url;
    public static DesiredCapabilities capabilities;
    public static AndroidDriver<AndroidElement> driver;

    //1
    @Test
    public void setupAppium() throws MalformedURLException {
    //2
    final String URL_STRING = “http://127.0.0.1:4723/wd/hub”;
    url = new URL(“http://127.0.0.1:4723/wd/hub”);

    //3
    DesiredCapabilities cap= new DesiredCapabilities();
    cap.setCapability(MobileCapabilityType.DEVICE_NAME, “Nexus_4_API_27”);
    cap.setCapability(MobileCapabilityType.PLATFORM_NAME, “android”);
    cap.setCapability(MobileCapabilityType.PLATFORM_VERSION, “3.6.0”);
    cap.setCapability(MobileCapabilityType.APP, “/Users/uss/Desktop/untitled folder/Appium/src/main/java/Appium/ApiDemos-debug.apk”);
    cap.setCapability(MobileCapabilityType.NO_RESET, true);
    // cap.setCapability(MobileCapabilityType.AUTOMATION_NAME, “XCUITest”);
    cap.setCapability(“useNewWDA”, false);
    //4
    AndroidDriver<AndroidElement> driver = new AndroidDriver<AndroidElement>(url, cap);
    driver.manage().timeouts().implicitlyWait(2, TimeUnit.SECONDS);
    //driver.resetApp();
    }

    }

    Getting this type of error in console:

    FAILED: setupAppium
    org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Could not find ‘adb’ in PATH. Please set the ANDROID_HOME or ANDROID_SDK_ROOT environment variables to the corect Android SDK root directory path.
    Build info: version: ‘3.6.0’, revision: ‘6fbf3ec767’, time: ‘2017-09-27T15:28:36.4Z’
    System info: host: ‘tests-Mac-mini.local’, ip: ‘fe80:0:0:0:431:f1c:51d3:566a%en0’, os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.13.6’, java.version: ‘1.8.0_111’
    Driver info: driver.version: AndroidDriver
    remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: Could not find ‘adb’ in PATH. Please set the ANDROID_HOME or ANDROID_SDK_ROOT environment variables to the corect Android SDK root directory path.

    Source: Read More

    Facebook Twitter Reddit Email Copy Link
    Previous Articlekhard – console vcard client
    Next Article EAGLE-2: An Efficient and Lossless Speculative Sampling Method Achieving Speedup Ratios 3.05x – 4.26x which is 20% – 40% Faster than EAGLE-1

    Related Posts

    Machine Learning

    Salesforce AI Releases BLIP3-o: A Fully Open-Source Unified Multimodal Model Built with CLIP Embeddings and Flow Matching for Image Understanding and Generation

    May 16, 2025
    Security

    Nmap 7.96 Launches with Lightning-Fast DNS and 612 Scripts

    May 16, 2025
    Leave A Reply Cancel Reply

    Continue Reading

    From Latent Spaces to State-of-the-Art: The Journey of LightningDiT

    Development

    Sharp partners with Xumo to run its future line of QLED smart TVs

    News & Updates

    Selenium IE Webdriver showing “Only Local connection are allowed” in TestNG

    Development

    CVE-2023-53125 – “Linux Kernel SMSc75xx Network Stack Buffer Overflow”

    Common Vulnerabilities and Exposures (CVEs)

    Highlights

    Elon Musk got roasted in Path of Exile 2 livestream — He rage-quit after dying over and over News & Updates

    Elon Musk got roasted in Path of Exile 2 livestream — He rage-quit after dying over and over

    April 8, 2025

    The richest man in the world apparently got made fun of while livestreaming Path of…

    Where to buy MSI Claw 8 AI+ gaming handheld: Launch date and restock alerts

    March 24, 2025

    How to Create Content in WordPress with AI

    May 1, 2024

    Dir-Assistant: Simplifying File Management with Local and API Language Models

    May 31, 2024
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.