Advertisement
Guest User

Untitled

a guest
Feb 15th, 2014
1,506
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.05 KB | None | 0 0
  1. // MainActivity.java
  2. import android.support.v7.app.ActionBarActivity;// error
  3.  
  4. public class MainActivity extends ActionBarActivity {...} // error
  5.  
  6. // DisplayMessageActivity.java
  7. import android.support.v4.app.NavUtils; // error on this line
  8. public boolean onCreateOptionsMenu(Menu menu) {
  9. // Inflate the menu; this adds items to the action bar if it is present.
  10. getMenuInflater().inflate(R.menu.display_message, menu);// error at R
  11. return true;
  12. }
  13.  
  14. public boolean onOptionsItemSelected(MenuItem item) {
  15. switch (item.getItemId()) {
  16. case android.R.id.home:
  17. // This ID represents the Home or Up button. In the case of this
  18. // activity, the Up button is shown. Use NavUtils to allow users
  19. // to navigate up one level in the application structure. For
  20. // more details, see the Navigation pattern on Android Design:
  21. //
  22. // http://developer.android.com/design/patterns/navigation.html#up-vs-back
  23. //
  24. NavUtils.navigateUpFromSameTask(this);// error at NavUtils
  25. return true;
  26. }
  27. return super.onOptionsItemSelected(item);
  28. }
  29.  
  30. The import android.support cannot be resolved MainActivity.java /MyFirstApp/src/com/example/myfirstapp line 4 Java Problem
  31. The method onCreate(Bundle) of type MainActivity must override or implement a supertype method MainActivity.java /MyFirstApp/src/com/example/myfirstapp line 16 Java Problem
  32. ActionBarActivity cannot be resolved to a type MainActivity.java /MyFirstApp/src/com/example/myfirstapp line 12 Java Problem
  33. R cannot be resolved to a variable MainActivity.java /MyFirstApp/src/com/example/myfirstapp line 18 Java Problem
  34. ActionBarActivity cannot be resolved to a type MainActivity.java /MyFirstApp/src/com/example/myfirstapp line 17 Java Problem
  35. The method onCreateOptionsMenu(Menu) of type MainActivity must override or implement a supertype method MainActivity.java /MyFirstApp/src/com/example/myfirstapp line 23 Java Problem
  36. The import android.support cannot be resolved DisplayMessageActivity.java /MyFirstApp/src/com/example/myfirstapp line 9 Java Problem
  37. R cannot be resolved to a variable DisplayMessageActivity.java /MyFirstApp/src/com/example/myfirstapp line 51 Java Problem
  38. The method getMenuInflater() is undefined for the type MainActivity MainActivity.java /MyFirstApp/src/com/example/myfirstapp line 25 Java Problem
  39. R cannot be resolved to a variable MainActivity.java /MyFirstApp/src/com/example/myfirstapp line 25 Java Problem
  40. The constructor Intent(MainActivity, Class<DisplayMessageActivity>) is undefined MainActivity.java /MyFirstApp/src/com/example/myfirstapp line 30 Java Problem
  41. R cannot be resolved to a variable MainActivity.java /MyFirstApp/src/com/example/myfirstapp line 31 Java Problem
  42. The method startActivity(Intent) is undefined for the type MainActivity MainActivity.java /MyFirstApp/src/com/example/myfirstapp line 34 Java Problem
  43. Jar mismatch! Fix your dependencies MyFirstApp Unknown Android Dependency Problem
  44. NavUtils cannot be resolved DisplayMessageActivity.java /MyFirstApp/src/com/example/myfirstapp line 66 Java Problem
  45.  
  46. [2014-01-23 18:31:52 - MyFirstApp] Found 2 versions of android-support-v4.jar in the dependency list,
  47. [2014-01-23 18:31:52 - MyFirstApp] but not all the versions are identical (check is based on SHA-1 only at this time).
  48. [2014-01-23 18:31:52 - MyFirstApp] All versions of the libraries must be the same at this time.
  49. [2014-01-23 18:31:52 - MyFirstApp] Versions found are:
  50. [2014-01-23 18:31:52 - MyFirstApp] Path: C:UsersdaiyueGoogle DriveMyFirstApplibsandroid-support-v4.jar
  51. [2014-01-23 18:31:52 - MyFirstApp] Length: 621451
  52. [2014-01-23 18:31:52 - MyFirstApp] SHA-1: 5896b0a4e377ac4242eb2bc785220c1c4fc052f4
  53. [2014-01-23 18:31:52 - MyFirstApp] Path: C:Program Files (x86)Androidandroid-sdkextrasandroidsupportv7appcompatlibsandroid-support-v4.jar
  54. [2014-01-23 18:31:52 - MyFirstApp] Length: 627582
  55. [2014-01-23 18:31:52 - MyFirstApp] SHA-1: db0f122c99ef9f90dbab3fada6d191f2880cbb8e
  56. [2014-01-23 18:31:52 - MyFirstApp] Jar mismatch! Fix your dependencies
  57. [2014-01-23 18:31:53 - MyFirstApp] W/ResourceType( 8160): ResXMLTree_node header size 0 is too small.
  58. [2014-01-23 18:31:53 - MyFirstApp] C:UsersdaiyueGoogle DriveMyFirstAppresvaluesdesktop.ini:1: error: Error parsing XML: syntax error
  59. [2014-01-23 18:31:53 - MyFirstApp] C:UsersdaiyueGoogle DriveMyFirstAppresvalues-v11desktop.ini:1: error: Error parsing XML: syntax error
  60. [2014-01-23 18:31:53 - MyFirstApp] C:UsersdaiyueGoogle DriveMyFirstAppresvalues-v14desktop.ini:1: error: Error parsing XML: syntax error
  61. [2014-01-23 18:31:53 - MyFirstApp] C:UsersdaiyueGoogle DriveMyFirstAppresvalues-sw600dpdesktop.ini:1: error: Error parsing XML: syntax error
  62. [2014-01-23 18:31:53 - MyFirstApp] C:UsersdaiyueGoogle DriveMyFirstAppresvalues-sw720dp-landdesktop.ini:1: error: Error parsing XML: syntax error
  63. [2014-01-23 18:31:53 - MyFirstApp] C:UsersdaiyueGoogle DriveMyFirstAppreslayoutdesktop.ini:1: error: Error parsing XML: syntax error
  64. [2014-01-23 18:31:53 - MyFirstApp] C:UsersdaiyueGoogle DriveMyFirstAppresmenudesktop.ini:1: error: Error parsing XML: syntax error
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement