java - Eclipse ADK: Errors in Main Activity and Rec -


I followed the instructions for Android bootcamps YouTube series (3. Hello World) as close as possible, but I I have run across Slof problems:

issue 1: Aveedi Manager

Ilipas will not recognize my phone (Samsung Galaxy S 5) for debugging / running apps I it Does not appear at AVD at all.

  • I have downloaded the necessary driver for my computer to communicate with the phone
  • I have enabled the developer mode with me
  • I have enabled debugging on USB
  • I have eclipsed and restarted my phone
  • The phone is new, weak and just runs fine
  • My computer is my Recognizes the phone and gives the correct name, can extract the files, etc.

Issue 2: Running A S

I tried to restrain the adid manager by clicking, "run" to select just "my phone" However, after the choice to run as "Android Application", I get an error Found:

  Errors occurred during build. The project builder XXX '' Android pre-compiler 'running errors  

I have new software ( Help & gt; install new software & gt; http: // download) Installing new software has solved this error. Eclipse.org / release / luna & gt; 'Collaboration' & gt; Through the recommendation made on 'SubSourceive SVN JDT Ignore Extension' and 'SubSourceive SVN Team Provider' ). The error disappeared from

Unfortunately, when the error no longer appears, the application still refuses to run. It now contains errors:

  Halowald 1 (error) src (ERRORS) com.example.helloworld1 (ERRORS) HelloWorldActivity.java (errors)  

and

REC (error) value (error) value- v11 (error) value- vw820dp (error)

Unfortunately, I do not know when errors Appeared, but I know they are preventing me from running anything.

I have tried to clean up the project, but it fails every time and does not return any warning or message.

> Since the project has been created only one file I have touched is the XML piece. I clicked and pulled some elements in the graphical layout, then removed them. I have not touched any code except the Helm color code, which was used to change the font color for "Hello World" in HelloWorldActivity. The hex color code is correct and works fine.

Code for XML frag:

  & lt; Relative layout xmlns: android = "http://schemas.android.com / apk / res / Android" xmlns: device = "http://schemas.android.com/tools" Android: layout_width = "match_parent" Android: layout_height Android: paddingBottom = "@ Dimen / activity_vertical_margin" Android: PaddingLeft = "@ dimen / activity_horizontal_margin" Android: paddingRight = "@ dimen / activity_horizontal_margin" Android: paddingTop = "@ dimen / activity_vertical_margin" tool: reference = "com .example.helloworld1.HelloWorldActivity "& gt; Android: Android: Leaut_vidth = "wrap-content" Android: layout_height = "wrap_content" Android: layout_alignParentTop = "true" android: layout_centerHorizontal = "true" android: layout_marginTop = "102dp" Android: Text = "@ string / hello_world" / & Gt; & Lt; / RelativeLayout & gt;   

Code HelloWaldActivia. Java :

  package com.example.helloworld1; Import android.support.v7.app.ActionBarActivity; Importroid.os.Bundle; Import android.view.Menu; Import android.view.MenuItem; Public Class Hallowld Activity ActionBarActivity {@Override Build on Protected Zero (Bundled Saved InstanceState) {super.onCreate (SavedInstanceState); SetContentView (R.layout.activity_hello_world); } @ Override Public Boolean On Crate Option Menu (Menu Menu) {// Enhancing Menu; It adds the item to the Action Bar if it exists GetMenuInflater (). Flowers (R. menu.hello_world, menu); Back true; } @ Override Public Boolean On Option Itam Select (menu item) {// Handle action bar item here clicks the action bar will automatically click on the Home / Up button, so long as you // in AndroidManifest.xml Specify basic activity. Int id = item.getItemId (); If (id == R.id.action_settings) {return true; } Return Super.Options item selected (item); }}  

I'm dealing with nothing but errors for 4 days. I have not yet got any real work to do. I am at the end of intelligence

Any and all help is deeply appreciated.

Project Comparison looks like a problem with your configuration> your car Properties between project and new one created by you


Comments

Popular posts from this blog

c# - SignalR: "Protocol error: Unknown transport." when navigating to hub -

class - Kivy: how to instantiate a dynamic classes in python -

python - mayavi mapping a discrete colorbar on a surface -