Building Mythdroid r771 for Android 2.3.3

38 views
Skip to first unread message

John C

unread,
Jul 21, 2012, 12:31:48 AM7/21/12
to mythdr...@googlegroups.com
I have tried to build r771--It will build for Platform 3.0 API 11.
But my device is 2.3.3.
I get resource errors when trying to build with API level 10:
actionbaritem "no resource identifier for exitFadeDuration in package android.

I'm new to ADT and Android SDK.

Any Suggestions?

Thanks,
John

John C

unread,
Jul 21, 2012, 4:15:52 PM7/21/12
to mythdr...@googlegroups.com
I worked on this some more and got it to build.  I don't know whether the project repository code could be modified to still provide an "out-of-the-box" build for 2.3.3 API 10, but these are the steps I took.

Steps to Build revision 771.

Update Android Toolkits and SDK, etc (not sure if this was necessary for me but I did anyway)

Reset Project properties To API Level 10 for Android 2.3.3

NOTE:  If you get errors about R not being found (in gen folder), it's because the resources have not been all fixed. I note this because I had forgotten it and went on a goose chase thinking that my gen folder was read-only (weird WIN7 too).

Removed:
  res/drawable/actionbaritem.xml

In:
  res/layout/frontend_indicator.xml
Removed:
    android:background="@drawable/actionbaritem"

Removed folders:
   res/values-large-v11
   res/values-v11
   res/values-xlarge-v11

In:
   MDActivity, MDFragmentActivity, MDListActivity
Removed:
 @Override
    public boolean onOptionsItemSelected(MenuItem item) {
  

In ActionView.java
changed from:
    public ActionView(Context context, AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
    }
changed to:
    public ActionView(Context context, AttributeSet attrs, int defStyle) {
        super(context, attrs);
    }

I think that's about it!!
Cheers,
John
Reply all
Reply to author
Forward
0 new messages