Android Question I deleted appcompat folder

Discussion in 'Android Questions' started by somed3v3loper, Aug 7, 2015.

  1. somed3v3loper

    somed3v3loper Well-Known Member Licensed User

    Hello all ,

    I deleted C:\Android\android-sdk\extras\android\support\v7\appcompat folder and now when I run any Appcompat Application , I get Unfortuanetly APP has stopped working .

    Can any one please share same folder or tell me how to get it again ?


    Thanks in advance
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    You can download it again from Android SDK Manager.
     
    Peter Simpson likes this.
  3. somed3v3loper

    somed3v3loper Well-Known Member Licensed User

    I downloaded it again but I still get "Unfortuanetly app stopped working" error .
    Can the version be the problem ? currently SDK Manager has 22.2.1 .
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    You need to check the logs and see the error message.
     
  5. somed3v3loper

    somed3v3loper Well-Known Member Licensed User

    Log has : "java.lang.RuntimeException: Unable to start activity ComponentInfo{b4a.example/b4a.example.main}: java.lang.ClassCastException: android.support.v7.internal.widget.ContentFrameLayout cannot be cast to android.support.v7.internal.widget.NativeActionModeAwareLayout"
     
  6. corwin42

    corwin42 Expert Licensed User

    If you now probably installed a newer version in your SDK directory and the #AdditionalRes attribute points to the SDK path have you updated the android-support-v4.jar and android-support-v7-appcompat.jar files in your CustomLibs folder?
     
    somed3v3loper likes this.
  7. somed3v3loper

    somed3v3loper Well-Known Member Licensed User

    Thanks a lot .
    I copied v7 and v4 from C:\Android\android-sdk\extras\android\support\v7\appcompat\libs to Libraries folder but my app still crashed then I got v4 from C:\Android\android-sdk\extras\android\support\v4
    And now my apps are working again .
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice