我一直在做一些关于媒体查询的研究,但我仍然不太了解如何定位某些尺寸的设备。 我希望能够定位台式机,平板电脑和移动设备。我知道会有一些差异,但是拥有可用于定位这些设备的通用系统会很好。 我发现了一些例子: # Mobile only screen and (min-width: 480px) # Tablet only screen and (min-width: 768px) # Desktop only screen and (min-width: 992px) # Huge only screen and (min-width: 1280px) 要么: # Phone only screen and (max-width:320px) # Tablet only screen and (min-width:321px) and (max-width:768px) # Desktop only screen …
当我尝试在手机的模拟器o中运行“ app”时,使用Kotlin的android应用程序抛出此异常。当我构建项目时,它运行良好,没有错误。 我在用: SDK 28(Android 9.0(Pie)) 摇篮5.1.1 Gradle插件3.5.0-alpha03 Kotlin 1.3.10 Java 1.8.0_151 OSX 10.13.2 org.gradle.internal.exceptions.LocationAwareException: buildOutput.apkData must not be null at org.gradle.initialization.exception.DefaultExceptionAnalyser.transform(DefaultExceptionAnalyser.java:99) at org.gradle.initialization.exception.DefaultExceptionAnalyser.collectFailures(DefaultExceptionAnalyser.java:65) at org.gradle.initialization.exception.MultipleBuildFailuresExceptionAnalyser.transform(MultipleBuildFailuresExceptionAnalyser.java:39) at org.gradle.initialization.exception.StackTraceSanitizingExceptionAnalyser.transform(StackTraceSanitizingExceptionAnalyser.java:29) at org.gradle.initialization.DefaultGradleLauncher.finishBuild(DefaultGradleLauncher.java:194) at org.gradle.initialization.DefaultGradleLauncher.finishBuild(DefaultGradleLauncher.java:141) ... Caused by: java.lang.IllegalStateException: buildOutput.apkData must not be null at com.android.build.gradle.internal.ide.EarlySyncBuildOutput$Companion$load$2.invoke(EarlySyncBuildOutput.kt:103) at com.android.build.gradle.internal.ide.EarlySyncBuildOutput$Companion$load$2.invoke(EarlySyncBuildOutput.kt:67) at kotlin.sequences.TransformingSequence$iterator$1.next(Sequences.kt:174) at kotlin.sequences.SequencesKt___SequencesKt.toCollection(_Sequences.kt:691) at …