Note that there are some explanatory texts on larger screens.

plurals
  1. POSetting up Android support package v7 for eclipse - GridLayout
    primarykey
    data
    text
    <p>I've been trying this all evening to no avail so I'm going to list my exact steps starting from scratch.</p> <ul> <li>I've installed the support package via SDK manager.</li> <li>I create a new android project which I call "testinggridlayout".</li> <li>The build target I select is Android 2.1 API 7.</li> <li>List item</li> </ul> <p>This will be my project which I want to be able to create a grid layout on.</p> <hr> <p>To set up the support package these are my steps:</p> <ul> <li>Right-click the project I've just created and select - New - Android Project</li> <li>Name it GridLayout and select create project from existing source and browse to:<br></li> </ul> <blockquote> <p>android-sdks\extras\android\support\v7\gridlayout</p> </blockquote> <ul> <li>Right-click my <code>testinggridlayout</code> project and click properties:</li> <li>under Java Build Path - select the Projects tab, then Add.</li> <li>select my project "GridLayout" and click OK, then Ok.</li> </ul> <p>At this point</p> <p>If I go into the main.xml layout manually insert this code:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" &gt; &lt;GridLayout android:background="#FFFFFF" android:layout_width="wrap_content" android:layout_height="wrap_content" android:columnCount="8" android:rowCount="5" &gt; &lt;/GridLayout&gt; &lt;/LinearLayout&gt; </code></pre> <p>I get the error:</p> <blockquote> <p>The following classes could not be found: - GridLayout (fix build path, edit XML).</p> </blockquote> <p>If I change</p> <p><code>&lt;GridLayout&gt; &amp; &lt;/GridLayout&gt;</code><br> to <br> <code>&lt;android.support.v7.widget.GridLayout&gt; &amp; &lt;/android.support.v7.widget.Gridlayout&gt;</code></p> <p>I receive the same error:</p> <blockquote> <p>The following classes could not be found: - android.support.v7.widget.GridLayout (fix build path, edit XML).</p> </blockquote> <p>At that point I created a folder in my project called "libs".</p> <p>I then copied the android-support-v7-GridLayout.jar file under libs in the GridLayout project to this folder.</p> <p>I right clicked this file in my "libs" folder in "testinggridlayout" and selected "Add to Build Path".</p> <p>My error then changed to:</p> <blockquote> <p>The following classes could not be instantiated: - android.support.v7.widget.GridLayout (open class, show error log)</p> </blockquote> <p>Which bit(s) have I missed out/ shouldn't have done?</p>
    singulars
    1. This table or related slice is empty.
    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.
 

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