Note that there are some explanatory texts on larger screens.

plurals
  1. POUnexpected Top-Level Exception in android-support-v4.jar
    primarykey
    data
    text
    <p>I have a problem when I want to compile my app:</p> <blockquote> <p>UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.IllegalArgumentException: already added`</p> </blockquote> <p>It seems to be a error with android-support-v4.jar.</p> <p>In my project I have 3 libraries: appcompat, facebook, google_play_services.</p> <p>My gradle files:</p> <ul> <li><p>AppProject/settings.gradle</p> <pre><code>include ':libraries:google_play_services', ':libraries:appcompat', ':libraries:facebook', ':app' </code></pre></li> <li><p>AppProject/build.gradle :</p> <pre><code>buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:0.5.+' } } </code></pre></li> <li><p>AppProject/app/build.gradle:</p> <pre><code>apply plugin: 'android' dependencies { compile project(':libraries:appcompat') compile project(':libraries:facebook') compile project(':libraries:google_play_services') compile files('libs/android-async-http-1.4.3.jar') compile files('libs/gson-2.2.4.jar') compile files('libs/libGoogleAnalyticsV2.jar') compile files('libs/universal-image-loader-1.8.4.jar') compile files('libs/urbanairship-lib-3.0.0.jar') } </code></pre></li> <li><p>AppProject/libraries/appcompat/build.gradle:</p> <pre><code>apply plugin: 'android-library' dependencies { compile files('libs/android-support-v4.jar') compile files('libs/android-support-v7-appcompat.jar') } </code></pre></li> <li><p>AppProject/libraries/facebook/buidle.gradle:</p> <pre><code>apply plugin: 'android-library' dependencies { compile files('libs/android-support-v4.jar') } </code></pre></li> <li><p>AppProject/libraries/google_play_services/buidle.gradle:</p> <pre><code>apply plugin: 'android-library' dependencies { compile files('libs/google-play-services.jar') } </code></pre></li> </ul> <p>But when I compile it, this error appears:</p> <pre class="lang-none prettyprint-override"><code>Output: UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.IllegalArgumentException: already added: Landroid/support/v4/app/NotificationCompatIceCreamSandwich; </code></pre> <p>Can you help me?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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