Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7946149
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T01:03:58+00:00 2026-06-04T01:03:58+00:00

I downlaoded an example from the Internet to learn more about the AugmentedReality. And

  • 0

I downlaoded an example from the Internet to learn more about the AugmentedReality.

And when I tried to import the project, eclipse couldnt find any project and then, i decided

to copy all the files one by one in a new project I created. But, when I tried to fix some

error, I could not fix and error reads: “main canot be resolved or is not a field”

this error appeared around ‘setContentView(R.layout.main);’ despite of, in the resources file

there is a main.xml file, but eclipse cant find it.

any suggestions to fix such an error?

LOGCAT:

05-17 16:56:16.975: E/AndroidRuntime(12497): FATAL EXCEPTION: main

05-17 16:56:16.975: E/AndroidRuntime(12497): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.imrannazar.sobel/com.imrannazar.sobel.Sobel}: android.view.InflateException: Binary XML file line #3: Error inflating class com.imrannazar.sobel.OverlayView
05-17 16:56:16.975: E/AndroidRuntime(12497): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1651)
05-17 16:56:16.975: E/AndroidRuntime(12497): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1667)
05-17 16:56:16.975: E/AndroidRuntime(12497): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
05-17 16:56:16.975: E/AndroidRuntime(12497): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:935)
05-17 16:56:16.975: E/AndroidRuntime(12497): at android.os.Handler.dispatchMessage(Handler.java:99)
05-17 16:56:16.975: E/AndroidRuntime(12497): at android.os.Looper.loop(Looper.java:130)
05-17 16:56:16.975: E/AndroidRuntime(12497): at android.app.ActivityThread.main(ActivityThread.java:3691)
05-17 16:56:16.975: E/AndroidRuntime(12497): at java.lang.reflect.Method.invokeNative(Native Method)
05-17 16:56:16.975: E/AndroidRuntime(12497): at java.lang.reflect.Method.invoke(Method.java:507)
05-17 16:56:16.975: E/AndroidRuntime(12497): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:907)
05-17 16:56:16.975: E/AndroidRuntime(12497): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:665)
05-17 16:56:16.975: E/AndroidRuntime(12497): at dalvik.system.NativeStart.main(Native Method)
05-17 16:56:16.975: E/AndroidRuntime(12497): Caused by: android.view.InflateException: Binary XML file line #3: Error inflating class com.imrannazar.sobel.OverlayView
05-17 16:56:16.975: E/AndroidRuntime(12497): at android.view.LayoutInflater.createView(LayoutInflater.java:508)
05-17 16:56:16.975: E/AndroidRuntime(12497): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:570)
05-17 16:56:16.975: E/AndroidRuntime(12497): at android.view.LayoutInflater.rInflate(LayoutInflater.java:623)
05-17 16:56:16.975: E/AndroidRuntime(12497): at android.view.LayoutInflater.inflate(LayoutInflater.java:408)
05-17 16:56:16.975: E/AndroidRuntime(12497): at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
05-17 16:56:16.975: E/AndroidRuntime(12497): at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
05-17 16:56:16.975: E/AndroidRuntime(12497): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:215)
05-17 16:56:16.975: E/AndroidRuntime(12497): at android.app.Activity.setContentView(Activity.java:1663)
05-17 16:56:16.975: E/AndroidRuntime(12497): at com.imrannazar.sobel.Sobel.onCreate(Sobel.java:74)
05-17 16:56:16.975: E/AndroidRuntime(12497): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
05-17 16:56:16.975: E/AndroidRuntime(12497): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1615)
05-17 16:56:16.975: E/AndroidRuntime(12497): … 11 more
05-17 16:56:16.975: E/AndroidRuntime(12497): Caused by: java.lang.NoSuchMethodException
05-17 16:56:16.975: E/AndroidRuntime(12497): at java.lang.Class.getDeclaredConstructors(Native Method)
05-17 16:56:16.975: E/AndroidRuntime(12497): at java.lang.Class.getConstructor(Class.java:472)
05-17 16:56:16.975: E/AndroidRuntime(12497): at android.view.LayoutInflater.createView(LayoutInflater.java:480)
05-17 16:56:16.975: E/AndroidRuntime(12497): … 21 more

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T01:03:59+00:00Added an answer on June 4, 2026 at 1:03 am

    I think you have an import like:

    import android.R;
    

    Remove it and your problem should be gone.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I downloaded example code of an Android project featuring AdMob ads from here .
I'm trying to compile in Eclipse the example code from McDowell here JNA Keyboard
I tried to download something from the Internet using Python, I am using urllib.retriever
I downloaded the example project from Now.js http://nowjs.com/guide and when I run it I
I am working on an Extjs portal example and downloaded the example from extjs4-mvc-portal
I found a great C++/ODBC example here ... The project I downloaded builds great
i downlaoded three20 p31. when i tried to build i got errors in following
I have a downloader program that download pages from internet . the encoding of
UPDATE 1: Here is the full code behind from the downloaded example, unedited: using
I have downloaded TableView sample code '4_TableViewCellSubviews' from internet. I am trying to run

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.