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

  • Home
  • SEARCH
  • 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 3227114
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T16:32:12+00:00 2026-05-17T16:32:12+00:00

The app I am developing has many activities organized into seven java packages. Originally

  • 0

The app I am developing has many activities organized into seven java packages. Originally I wrote all the coding and stuff for each group of activities in a java package as different projects.

Now I’m at the point where I want to put all the packages together into one project. When I add a new package to the src folder, I get an error for all my R.id.* values (“R cannot be resolved”).

My instinct tells me that there is something fancy I have to put in the project manifest, but I can’t find any resource online to tell me how.

(Note: I have read this and this and I still couldn’t figure out how to add additional packages to my project.)

  • 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-05-17T16:32:12+00:00Added an answer on May 17, 2026 at 4:32 pm

    Make sure that the import statement at the top of the Activity references the correct R file. Each project has its own R file, so if you copy an Activity from one project to another it will still be trying to reference the R file from the old project.

    You do not need any explicit inclusion of different packages in the manifest. To include activities from two different packages, say:

    com.example.package1.Activity1
    com.example.package2.Activity2
    

    you can do the following:

    <manifest package="com.example" . . . >
      <application . . .>
        <activity android:name=".package1.Activity1" . . . />
        <activity android:name=".package2.Activity2" . . . />
      </application>
    </manifest>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hy, I'm developing a Grails app which has to communicate with an existing Java
we're developing a web app to cover all aspects of a printing company from
I am developing an iPhone app that displays several views, all acessed via Tab
I'm developing the app which has input fields and whenever user enters the controll,
When developing an app that will listen on a TCP/IP port, how should one
While developing my app I have come to realize that the majority of my
I have a Windows 6 app I am developing (in VB). I am pulling
I have a command line Ruby app I'm developing and I want to allow
I'm using the RESTful authentication Rails plugin for an app I'm developing. I'm having
I'm using the data mapper pattern in a PHP app I'm developing and have

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.