Friday, February 7, 2014

Initial use Eclipse Andrews made a HelloWorld program, the results reported java problem, seeking advice.


            
As shown, I do not know where is the problem, seeking advice ...

Reply:
Your files are not automatically generated R.java, you restart the eclipse look gen that folder there R.java file
Reply:
Project-clean, close the project, and then open
Reply:
R.java deleted automatically generate a re-make it ok.
Reply:
About R.java, I did not find in what position, Gen Lane did not. Probably really is not generated. I restarted eclipse did not automatically generated. I have a question: What will be with my JDK and JRE settings related? I installed JDK1.7u45, by default after the installation is complete there will be no move. Not set environment variables in the path of the system. This will not tell them about it!
Reply:
R does not compile There are many reasons, such as the following material res folder / layout has capitalized so named irregularities will lead R.java not compiled, the proposed rules LZ and more familiar with android
Reply:
The landlord should not open automatically compile, you need to build the next project. project-build
Reply:
JDK need to configure the environment variables
Reply:
Delete the project to reconfigure a
Reply:
references, 4th Floor zxb0075 reply:
About R.java, I did not find in what position, Gen Lane did not. Probably really is not generated. I restarted eclipse did not automatically generated. I have a question: What will be with my JDK and JRE settings related? I installed JDK1.7u45, by default after the installation is complete there will be no move. Not set environment variables in the path of the system. This will not tell them about it!


eclipse project under the menu bar above the menu in the Build Automatically can hook
Reply:
references, 4th Floor zxb0075 reply:
About R.java, I did not find in what position, Gen Lane did not. Probably really is not generated. I restarted eclipse did not automatically generated. I have a question: What will be with my JDK and JRE settings related? I installed JDK1.7u45, by default after the installation is complete there will be no move. Not set environment variables in the path of the system. This will not tell them about it!


You can not hook in to use Build All the menu directory (manual) both can only select one
Reply:
reference to the 9th floor pengguohua1988 reply:
Quote: references to the 4th floor zxb0075 reply:

About R.java, I did not find in what position, Gen Lane did not. Probably really is not generated. I restarted eclipse did not automatically generated. I have a question: What will be with my JDK and JRE settings related? I installed JDK1.7u45, by default after the installation is complete there will be no move. Not set environment variables in the path of the system. This will not tell them about it!


eclipse project under the menu bar above the menu in the Build Automatically hook can

I've looked at, Build Automatically selected an automatic system. But this is not a problem, I have tried.
Reply:
java environment variables I have set up (C: \ Program Files \ Java \ jdk1.7.0_45 \ bin), but did not solve the problem, the reason is not estimated here.
Reply:
I just delete this entire HelloWorld project and re-configure a new HelloWorld problem persists
Reply:
Your configuration file has not put added this activity?
Reply:
reference to the 14th floor kouwoo reply:
your configuration file, there is no added to this activity?

Which are you referring to the configuration file in the new project when I have checked the Create Activity of

Reply:
I wonder, in addition to pre-installed JDK is my good, the other is my video lectures according to Zhang Zehua software installation step by step and create your first HelloWorld project, people on a one-time success of the video, and it was my turn to appear such an insane bug, my character Yeah no problem. You shoes, do not stop, I implore you to help me again, look in the end where the problem, how to solve.
Reply:
The project package sent to everyone to see?
Reply:
You look at your xml is not written like


package = "com.example.test1"
android: versionCode = "1"
android: versionName = "1.0">

android: minSdkVersion = "8"
android: targetSdkVersion = "17" />

android: allowBackup = "true"
android: icon = "@ drawable / ic_launcher"
android: label = "@ string / app_name"
android: theme = "@ style / AppTheme">
android: name = "com.example.test1.MainActivity"
android: label = "@ string / app_name">









Reply:
cited 18 floor kouwoo reply:
you look at your xml is not written like


package = "com.example.test1"
android: versionCode = "1"
android: versionName = "1.0">

android: minSdkVersion = "8"
android: targetSdkVersion = "17" />

android: allowBackup = "true"
android: icon = "@ drawable / ic_launcher"
android: label = "@ string / app_name"
android: theme = "@ style / AppTheme">
android: name = "com.example.test1.MainActivity"
android: label = "@ string / app_name">










I was so

package = "com.appdes.helloworld"
android: versionCode = "1"
android: versionName = "1.0">

android: minSdkVersion = "10"
android: targetSdkVersion = "16" />

android: allowBackup = "true"
android: icon = "@ drawable / ic_launcher"
android: label = "@ string / app_name"
android: theme = "@ style / AppTheme">
android: name = "com.appdes.helloworld.MainActivity"
android: label = "@ string / app_name">










Reply:
cited 17 floor u012957731 reply:
the project package sent to everyone to see?

Where packaged, I will not
Reply:
Can not a program, but rather eclipse (ADT) System question?
Reply:
Right project, select proterties, select java build path, select libraries, you see a problem
Reply:
Manually clean under Project
Reply:
cited 22 floor kouwoo reply:
right project, select proterties, select java build path, select libraries, see if there is a problem you


Do not see the problem
Reply:
Solve the problem, the solution is somewhat haphazard way, is this:
Every time I open the sdk manager, always able to see several packages are ticked (because I felt no need, so they are not installed), and this time I opened the sdk manager, and installed these are ticked The packages (Android SDK Build-tools Tools under; Android 4.4 (API 19) under the SDK Platform and ARM EABI v7a System-Image).
Then, manually perform a clean project under, because under the Build Automatically project is selected by default, so after I finished the clean operating system automatically re-build again.
This is what I found no errors, the next gen also appeared R.java up.
Summary: corresponding packages SDK highest supported Android version you want to install (or, if found to open the SDK is not installed by default and because tick the packages, please select installation)
I do not know whether my summary on similar experiences with my children's shoes help. Thank you upstairs while reaching out to all my shoes, thank you.
Reply:
The same question, under study

No comments:

Post a Comment