Tag: android manifest

如何使用kotlin来定义一个android应用程序类?

这是我的代码: object MyApplication : Application() { override fun onCreate() { super.onCreate() initOkHttp() } } 当我在AndroidManifest声明MyApplication时,它发生has no default constructor ,任何人都可以帮助我吗? 在这里输入图像说明

将插件升级到3.0.0时出现Gradle构建错误(manifestOutputFile)

将Gradle插件版本升级到3.0.0( classpath “com.android.tools.build:gradle:3.0.0” )后,如果我尝试清理或生成项目,则会出现以下错误: A problem occurred configuring project ‘:app’. > Manifest Tasks does not support the manifestOutputFile property any more, please use the manifestOutputDirectory instead. For more information, please check https://developer.android.com/studio/build/gradle-plugin-3-0-0- migration.html * Try: Run with –stacktrace option to get the stack trace. Run with –info or –debug option to get more log output. […]

Android – 禁用横向模式?

如何禁用我的Android应用程序中的一些视图的横向模式?