When compiling my Android code, I'm getting the following error:
Error: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: Error: Execution failed for task ': app: mergeDebugResources'. Error: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException:
This is mainActivity
:
package com.example.eduarceleita.hojadevida;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
}
The R.
comes out in red color as you can see in the image
main_activity.xml :
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="2dp"
android:text="Eduar Alfonso Celeita"
android:id="@+id/textView" />
<ImageView
android:layout_width="150dp"
android:layout_height="150dp"
app:srcCompat="@drawable/foto"
android:layout_below="@+id/textView"
android:layout_centerHorizontal="true"
android:layout_marginTop="50dp"
android:layout_gravity="center"
android:id="@+id/imageView"
android:contentDescription="" />
<Button
android:text="Perfil profesional"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/button" />
<Button
android:text="Formacion academica"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/button2" />
<Button
android:text="Experiencia Laboral"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/button3" />
<Button
android:text="Referencias"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/button4" />
<Button
android:text="Idiomas"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/button5" />
I would like to know what is happening and why this error is generated please help me!