{"id":6486,"date":"2014-04-18T07:05:58","date_gmt":"2014-04-18T07:05:58","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/18\/problem-about-appcompat-collection-of-common-programming-errors\/"},"modified":"2014-04-18T07:05:58","modified_gmt":"2014-04-18T07:05:58","slug":"problem-about-appcompat-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/18\/problem-about-appcompat-collection-of-common-programming-errors\/","title":{"rendered":"problem about appcompat-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/3f8912af19fe86b7b34a0b011a962460?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nCody Gray<br \/>\nandroid gradle android-studio facebook-android-sdk appcompat<br \/>\nI have a problem when I want to compile my app:UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.IllegalArgumentException: already added`It seems to be a error with android-support-v4.jar.In my project I have 3 libraries: appcompat, facebook, google_play_services.My gradle files:AppProject\/settings.gradleinclude &#8216;:libraries:google_play_services&#8217;, &#8216;:libraries:appcompat&#8217;, &#8216;:libraries:facebook&#8217;, &#8216;:app&#8217;AppProject\/build.gradle :buildscript {repositories {mavenCentral()}dependencies {classpath &#8216;com.android.to<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/3990b5ca02cf582e5dd4b0d92a3b083c?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nMSI<br \/>\nandroid jar android-support-library android-4.4 appcompat<br \/>\nI have been successfully using android-support-v7-appcompat library for last few months in my app to support action bar in older devices. Recently I have downloaded the Android 4.4(kitkat) updates with system image and SDK platform from the SDK Manager. I also added targetSdkVersion to &#8220;19&#8221; in manifest file. But my project was showing error as &#8216;android-support-v7-appcompat jar mismatch. Fix your dependaecies.&#8217; Then I added the jar from \/extras\/android\/support\/&#8230;. to the project as an external j<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/33AT9.jpg?s=32&amp;g=1\" \/><br \/>\nPhilipp Jahoda<br \/>\nandroid illegalstateexception appcompat android-actionbaractivity<br \/>\nI have an error catch when I extend ActionBarActivity. If I extend Activity there is no errors.The thing is in my other activities it works perfectly. At first, I thought it&#8217;s was because my previous activity put extras in the intent. But even without it the app crash.Here is my code :import android.support.v7.app.ActionBarActivity;import android.os.Bundle;public class FullscreenActivity extends ActionBarActivity {@Overrideprotected void onCreate(Bundle savedInstanceState) {super.onCreate(savedI<\/li>\n<\/ul>\n<p>Web site is in building<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Cody Gray android gradle android-studio facebook-android-sdk appcompat I have a problem when I want to compile my app:UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.IllegalArgumentException: already added`It seems to be a error with android-support-v4.jar.In my project I have 3 libraries: appcompat, facebook, google_play_services.My gradle files:AppProject\/settings.gradleinclude &#8216;:libraries:google_play_services&#8217;, &#8216;:libraries:appcompat&#8217;, &#8216;:libraries:facebook&#8217;, &#8216;:app&#8217;AppProject\/build.gradle :buildscript {repositories {mavenCentral()}dependencies {classpath &#8216;com.android.to MSI android jar android-support-library android-4.4 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6486","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6486","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6486"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6486\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6486"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6486"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6486"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}