Good luck, in this app I intend to test by inserting a vector image into the main activity.
I made the entire integration process, as you can see:
ButeventhoughIhavefollowedthewholetutorial,thefollowingerrorappears,soIcannotevenruntheapp:
MainActivity:
package genesysgeneration.ruleoftree;
import android.content.Intent;
import android.graphics.Color;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.TextView;
import com.larvalabs.svgandroid.SVG;
import com.larvalabs.svgandroid.SVGParser;
public class Main01Activity extends AppCompatActivity implements View.OnClickListener{
private EditText et01, et02, et03;
private TextView tv01, tvTest;
private double l01, l02, l03, equalizer, lxx;
private Button btnChange01, btnCompras, btnMoeda;
private ImageView logo;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main01);
logo.setBackgroundColor(Color.WHITE);
SVG svg = SVGParser.getSVGFromAsset(getResources(), R.raw.tree);
logo.setImageDrawable(svg.createPictureDrawable());
setContentView(logo);
tvTest=(TextView)findViewById(R.id.tvTest);
tv01=(TextView)findViewById(R.id.tv01);
tvTest.setText(String.valueOf(0));
tv01.setText(String.valueOf(0));
}
}