“Could not find class 'android.support.v4.app.FragmentActivity'” Error

后端 未结 4 1363
没有蜡笔的小新
没有蜡笔的小新 2021-02-02 14:58

I\'m getting the following error:

> 02-06 23:10:24.104: E/dalvikvm(912): Could not find class
> \'android.support.v4.app.FragmentActivity\', referenced fro         


        
4条回答
  •  野性不改
    2021-02-02 15:10

    You need to add the support library com.android.support:support-v4

    On Android Studio, go in the menu File > Project Structure (Ctrl + Alt + Shift + S) Select app, tab Dependecies, and in the + and search for the Maven libraries that you will use. In your case, the com.android.support:support-v4 enter image description here

提交回复
热议问题