question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android run error: package org.apache.http does not exist

See original GitHub issue

Your Environment

macOS Catalina (Version 10.15.1) I usually add the platform from the command line and run it on Android Studio.

  • Plugin version: “^3.1.0”
  • Platform: Android
  • OS version: macOS Catalina (Version 10.15.1)
  • Device manufacturer and model: Samsung SM-A205W
  • Running in Simulator: no

  • Cordova version (cordova -v): 9.0.0 (cordova-lib@9.0.1)

  • Ionic Version (‘ionic info’): Ionic: Ionic CLI : 5.4.9 (/usr/local/lib/node_modules/ionic) Ionic Framework : @ionic/angular 4.11.5 @angular-devkit/build-angular : 0.13.9 @angular-devkit/schematics : 7.3.9 @angular/cli : 7.3.9 @ionic/angular-toolkit : 1.5.1 Cordova: Cordova CLI : 9.0.0 (cordova-lib@9.0.1) Cordova Platforms : android 8.1.0 Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.1.3, (and 8 other plugins) Utility: cordova-res : 0.6.0 (update available: 0.8.1) native-run : 0.2.9 System: Android SDK Tools : 26.1.1 (/Users/arruda/Library/Android/sdk) ios-deploy : 1.9.4 ios-sim : 8.0.2 NodeJS : v12.6.0 (/usr/local/bin/node) npm : 6.13.1 OS : macOS Catalina Xcode : Xcode 11.2.1 Build version 11B500

  • Plugin List (‘ionic cordova plugin list’): cordova-plugin-actionsheet 2.3.3 “ActionSheet” cordova-plugin-background-geolocation 1.0.6 “CDVBackgroundGeoLocation” cordova-plugin-device 2.0.3 “Device” cordova-plugin-dialogs 2.0.2 “Notification” cordova-plugin-geolocation 4.0.2 “Geolocation” cordova-plugin-ionic-keyboard 2.2.0 “cordova-plugin-ionic-keyboard” cordova-plugin-ionic-webview 4.1.3 “cordova-plugin-ionic-webview” cordova-plugin-splashscreen 5.0.3 “Splashscreen” cordova-plugin-statusbar 2.4.3 “StatusBar” cordova-plugin-whitelist 1.3.4 “Whitelist” uk.co.workingedge.phonegap.plugin.launchnavigator 5.0.4 “Launch Navigator”

Context

After adding the Android platform and I try to run on my device I get the following error: “error: package org.apache.http does not exist”

I’m kind of new here… Thanks guys for the help.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
arcarrudacommented, Dec 5, 2019

One think that helped me was first add the Android platform to after install the BG Geolocation plugin. But if I try to add the Android platform after the plugin is in my package.json, it cause this error related by me.

0reactions
stale[bot]commented, Oct 11, 2020

This issue has been automatically closed, because it has not had recent activity. If you believe this issue shouldn’t be closed, please reopen or write down a comment requesting issue reopening with explanation why you think it’s important. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android Gradle Apache HttpClient does not exist?
I resolved problem by adding following to my build.gradle file as recommended in second link. android { useLibrary 'org.apache.http.legacy' }. However this ...
Read more >
error: package org.apache.http does not exist #9 - GitHub
I'm trying to build application but get this error. What am i missing? Tried on cordova 6.0.0 and 5.4.1.
Read more >
Package org.apache.http does not exist and the app dont ...
Hi! Im learning ionic but I have a problem, I have been trying to solve this, but I dont know how. When I...
Read more >
How to solve package org.apache.http does not exist
When compiling a java file you might face an error of : error: package org.apache.http does not exist Just download the Apache ...
Read more >
How to solve package org.apache.http does not exist
Just download the Apache HttpComponents , and select the appropriate version . For example the HttpClient 5.0.3 version , or the HttpClient 4.5.13...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found