MyApplication本来就是自己设置的,作为全局的单例对象,用来存储系统信息,注册的点击事件不能运行和它没有关系
先百度一下就知道了
buildscript { repositories { maven { url'http://maven.aliyun.com/nexus/content/groups/public/' } google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.1.2' classpath "io.realm:realm-gradle-plugin:5.12.0" // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { maven { url'http://maven.aliyun.com/nexus/content/groups/public/' } repositories { google() jcenter() } }
我是这样引用的,正常的,你对比看看是不是哪里路径写错了,比如说有空格