StevenRudenko / ActionsContentView

ActionsContentView is an standalone library implements actions/content swiping view (AKA Side Navigation UI Pattern, AKA Facebook side menu). The library doesn't use any specific code introduced in new Android SDK versions. This allows develop an application with an action/content swiping view for every version of Android from 2.2 and up.
https://play.google.com/store/apps/details?id=sample.actionscontentview
441 stars 179 forks source link

Error in Library #34

Closed puneetv05 closed 11 years ago

puneetv05 commented 11 years ago

Got this error when i opened example.xml (ActionsContentView Example)

The following classes could not be instantiated:

android.content.res.Resources$NotFoundException: Could not resolve resource value: 0x7F060000. at android.content.res.BridgeResources.throwException(BridgeResources.java:693) at android.content.res.BridgeResources.getDimensionPixelSize(BridgeResources.java:406) at shared.ui.actionscontentview.ActionsContentView.(ActionsContentView.java:169) at shared.ui.actionscontentview.ActionsContentView.(ActionsContentView.java:157) at sun.reflect.NativeConstructorAccessorImpl.newInstance0( at sun.reflect.NativeConstructorAccessorImpl.newInstance( at sun.reflect.DelegatingConstructorAccessorImpl.newInstance( at java.lang.reflect.Constructor.newInstance( at com.android.ide.eclipse.adt.internal.editors.layout.ProjectCallback.instantiateClass(ProjectCallback.java:422) at com.android.ide.eclipse.adt.internal.editors.layout.ProjectCallback.loadView(ProjectCallback.java:179) at android.view.BridgeInflater.loadCustomView(BridgeInflater.java:207) at android.view.BridgeInflater.createViewFromTag(BridgeInflater.java:135) at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:746) at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:64) at android.view.LayoutInflater.rInflate(LayoutInflater.java:718) at android.view.LayoutInflater.inflate(LayoutInflater.java:489) at android.view.LayoutInflater.inflate(LayoutInflater.java:372)

puneetv05 commented 11 years ago

and same error in other apps too

StevenRudenko commented 11 years ago

It seems you have not imported ActionsContentViewLib project in workspace you use for applications. Please import it to same workspace where AcrionsContentViewExample is and try again.

puneetv05 commented 11 years ago

hmm I just imported manually and tried project prop. reference to Library also but when compiling same error occurred. :( any other suggestion ?

StevenRudenko commented 11 years ago

There is issue with missed resource value for R.dimen.default_actionscontentview_spacing. Could you check that you have it set at library or application projects?

puneetv05 commented 11 years ago

hmm which one I have to choose - import project module dependencies or import library?

StevenRudenko commented 11 years ago
  1. Clone GitHub somewhere
  2. Open Eclipse workspace
  3. Press menu File->Import->Android->Existing Android code into workspace
  4. Import ActionsContentViewLib project
  5. Import ActionsContentViewExample project

You are done. It should work well now.

puneetv05 commented 11 years ago

why I have to Import ActionsContentViewExample project ?

StevenRudenko commented 11 years ago

Please try my example first to see how it works. After that you would probably find problem in your code or configuration.

puneetv05 commented 11 years ago

ya got it thanks Steven Rudenko but How I import your library in my project?

StevenRudenko commented 11 years ago
  1. Clone GitHub somewhere
  2. Open Eclipse workspace
  3. Press menu File->Import->Android->Existing Android code into workspace
  4. Import ActionsContentViewLib project
  5. Select your project and press menu Project->Properties
  6. Select Android.
  7. Press Add at Library section. Select ActionsContentViewLib.
  8. Apply->OK

Now you can use it in your project.

puneetv05 commented 11 years ago

:+1: Thanks :)

StevenRudenko commented 11 years ago

did you get ActionsContentView work with your project?

tahaelearner commented 11 years ago

Getting this error "Android requires compiler compliance level 5.0 or 6.0. Found '1.7' instead. Please use Android Tools > Fix Project Properties."

StevenRudenko commented 11 years ago

It is your Eclipse configuration problem. Please use following steps to resolve issue:

  1. Open workspace with project
  2. Select project
  3. Press menu: Project->Properties
  4. Goto tab Java Compiler
  5. Check 'Enable project specific settings'
  6. Set 'Compiler compliance level' to 1.6
  7. Apply - OK

Do this for all Android projects or workspace setting and problem should be resolved.

puneetv05 commented 11 years ago

Set Compiler level to 1.6. and check you Environment Variable Path for JAVA