Add the following code in `android{}` of build.gradle ``` // Conditional for compatibility with AGP <4.2. if (project.android.hasProperty("namespace")) { namespace 'com.example.flutter_pty' } ```