IntelliJ and android.support.v7.widget.GridLayout

后端 未结 3 1932
傲寒
傲寒 2020-12-07 03:18

I am running into trouble either setting up the support v7 GridLayout library in my IntelliJ project, or properly referencing it in my code.

I currently use the Acti

3条回答
  •  没有蜡笔的小新
    2020-12-07 03:45

    A little simpler solution:

    First you need to add dependency to gradle anyway, so open build.gradle and

    dependencies {
        compile 'com.android.support:support-v4:13.0.+'
        compile "com.android.support:gridlayout-v7:18.0.+"
    }
    

    This is what http://developer.android.com/tools/support-library/setup.html# but it does not seem to work fully. So then you need to make android studio recognize it.

    1. File > Import Module
    2. Navigate to sdk/extras/android/support/v7/gridlayout

    after rebuilding project it started working for me.

提交回复
热议问题