Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Google have native httpcore package in android SDK (v18), and this package is <code>httpcore:4.2.x</code>. In order the <code>org.apache.httpcomponents:httpmime</code> works properly it must have the same version as native <code>httpcore</code> ie <code>org.apache.httpcomponents:httpmime:4.2.1</code></p> <p>I downloaded <code>httpclient-4.2.1.jar httpmime-4.2.1.jar</code> libs to the <code>&lt;project&gt;/libs</code> folder.</p> <p>Delete the <code>build</code> folder before make project.<br> This config solved all my problems with httpmime:</p> <pre><code>buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:0.5.+' } } apply plugin: 'android' allprojects { repositories { mavenCentral() } } dependencies { repositories { mavenCentral() } // Google Play Services compile 'com.google.android.gms:play-services:3.2.25' // Support Libraries compile 'com.android.support:support-v4:18.0.0' compile 'com.android.support:gridlayout-v7:18.0.0' compile 'com.android.support:support-v13:18.0.0' compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar' compile fileTree(dir: "libs", include: '*.jar') } android { compileSdkVersion 18 buildToolsVersion "18.0.1" defaultConfig { minSdkVersion 9 targetSdkVersion 18 } sourceSets { main { manifest.srcFile 'AndroidManifest.xml' java.srcDirs = ['src'] resources.srcDirs = ['src'] aidl.srcDirs = ['src'] renderscript.srcDirs = ['src'] res.srcDirs = ['res'] assets.srcDirs = ['assets'] } debug.setRoot('debug') } } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload