app 40 41 42 43 v Bqa.edu.qu.cmps312.quizapplica 44 45 46 47 manifests java Rand
ID: 3750284 • Letter: A
Question
app 40 41 42 43 v Bqa.edu.qu.cmps312.quizapplica 44 45 46 47 manifests java Random random; Main2Activity MainActivity QuestionAndAnswers @0verride protected void onCreate(Bundle savedInstancestate) { 48 0 qa.edu.qu.cmps312.quizapplica 49 qa.edu.qu.cmps312.quizapplica 50 super.onCreate(savedInstanceState); setContentView(R. layout.activity_main2); 51 52 53 54 answeri rb.RadioButton) findViewById(R. id. answertrb q) answer1_rb_q.setOnClickListener(this); Gradle Scripts build.gradle (Project: QuizApplicati build.gradle (Module: app) nl gradle-wrapper.properties (Gradle answer2_rb qRadioButton)findViewById(R.id. answer2_rb_q) answer2_rb_q.set0nClickListener(this); 57 proguard-rules.pro (ProGuard Rule 58 gradle.properties (Project Propertie 59 answer3 rbq-RadioButton) findViewById(R.id. answer3_rb_q); answer3_rb_q.setOnClickListener(this); settings.gradle (Project Settings) 6 61 ilocal.properties (SDK Location)62 63 answer4_rb q-RadioButton) findViewById(R.id. answer4rb_q)i answer4_rb_q.setOnClickListener(this); 65 Main2Activity onCreate) Build Sync Build: build failed at 9/19/ 7s 459ms AAPT2 error: check logs for details Run build Users/noura/ 6s 819ms 50ms 621ms 966ms Load build Configure build Calculate task graphExplanation / Answer
Go to the gradle.properties file and add this line: android.enableAapt2=false
OR
This Error is fixed in Gradle Plugin 3.2.0.
Just try to migrate to 3.2.0 in your build.gradle file by changing this line classpath 'com.android.tools.build:gradle:3.2.0-alpha11'.
Your Android Studio should do the rest
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.