Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Andmore » Creating new android project give many errors(How can i fix the errors when creating new project ?)
Creating new android project give many errors [message #1702385] Tue, 21 July 2015 22:53 Go to next message
daniel lip is currently offline daniel lipFriend
Messages: 1
Registered: July 2015
Junior Member
In Eclipse i'm going to File > New > Other > Android Application Project
I give a name then click next next next finish when it's creating the new project i'm getting errors in the console window:

error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'

6 errors all in styles.xml

Also i'm getting errors in the MainActivity.java and i didn't change anything didn'nt even open the MainActivity.java yet.

package com.example.texttospeech;

import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;

public class MainActivity extends ActionBarActivity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}

	@Override
	public boolean onOptionsItemSelected(MenuItem item) {
		// Handle action bar item clicks here. The action bar will
		// automatically handle clicks on the Home/Up button, so long
		// as you specify a parent activity in AndroidManifest.xml.
		int id = item.getItemId();
		if (id == R.id.action_settings) {
			return true;
		}
		return super.onOptionsItemSelected(item);
	}
}


error on android.support.v7

error on onCreate(Bundle savedInstanceState)

error on super

What is going on here ?
Re: Creating new android project give many errors [message #1702391 is a reply to message #1702385] Wed, 22 July 2015 04:04 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 07/21/2015 09:10 PM, daniel lip wrote:
> In Eclipse i'm going to File > New > Other > Android Application Project
> [snip]
>
> What is going on here ?

Sticky post at the top of the forum.

https://www.eclipse.org/forums/index.php/t/225513/
Previous Topic:Problem with generated projects
Next Topic:Starting with Andmore
Goto Forum:
  


Current Time: Sat Nov 11 06:57:13 GMT 2023

Powered by FUDForum. Page generated in 0.01911 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top