草庐IT

compile-time-constant

全部标签

java - Android Studio 1.4 渲染问题 NOTE : This project contains Java compilation errors

渲染问题注意:此项目包含Java编译错误,这可能会导致自定义View呈现失败。首先修复编译问题。找不到以下类:- android.support.design.widget.AppBarLayout(FixBuildPath,EditXML,CreateClass)- android.support.design.widget.CoordinatorLayout(FixBuildPath,EditXML,CreateClass)我正在使用AndroidStudio1.4这里的问题: 最佳答案 如果你使用sdk28compileSdk

android - Kivy Apk build with buildozer error : # Java compiler (javac) not found, 请安装它

我正在尝试构建我的kivy项目的apk。我已经使用PyCharm在python2.7中安装了buildozer,然后我构建了.spec,但是当我尝试创建apk时,我得到了这些结果:我已经安装了jdk7和8使用:buildozerAndroid调试#Checkconfigurationtokens#Ensurebuildlayout#Checkconfigurationtokens#Preparingbuild#Checkrequirementsforandroid#Javacompiler(javac)notfound,pleaseinstallit.使用:buildozer-vAnd

android - Mac 操作系统 : Android Studio quit unexpectedly on first time startup

我刚刚下载了最新版本的AndroidStudio并尝试运行它,但我立即收到错误消息“AndroidStudio意外退出”。我按照类似线程的建议设置了STUDIO_SDK版本(在终端中),但这似乎没有帮助。我尝试从启动器和终端打开应用程序,但两种方式都出现相同的错误。$echo$JAVA_HOME/Library/Java/JavaVirtualMachines/jdk1.8.0_111.jdk/Contents/Home$echo$STUDIO_SDK/Library/Java/JavaVirtualMachines/jdk1.8.0_111.jdk$grep-A1"JVMVersio

android - 为什么我得到 "Configuration ' compile' is obsolete”

我已经阅读了有关此问题的SO线程并添加了classpath'com.google.gms:google-services:3.2.1'到build.gradle,但它没有帮助。这是完整的gradle:buildscript{repositories{maven{url'https://maven.fabric.io/public'}mavenCentral()jcenter()google()}dependencies{classpath'io.fabric.tools:gradle:1.26.1'classpath'com.android.tools.build:gradle:3.2

java - mac 上的 Android Studio : cant find System compiler

当我尝试编译“helloworld”时,我在我的一台mac上得到了这个Error:Executionfailedfortask':app:compileDebugJava'.CannotfindSystemJavaCompiler.EnsurethatyouhaveinstalledaJDK(notjustaJRE)andconfiguredyourJAVA_HOMEsystemvariabletopointtotheaccordingdirectory.在我的另一台Mac上,我没有任何问题。据我所知,设置是一样的。只是出于某种原因,在一台机器上,AndroidStudio/Gradl

android - DDMS中 'Wall Time'中的 'Thread Time'和 'Tracer for OpenGL ES'有什么区别

在DDMS中TraceOpenGLcalls中有两种时间,WallTimes和ThreadTime,它们是什么意思呢?两者之间有什么区别?我只能看到大部分ThreadTime等于WallTime,而部分ThreadTime小于WallTime。 最佳答案 名字已经很清楚了。在谈到性能计时时,“挂钟时间”指的是实际耗时。它指的是您在挂钟上看到的时间(当然分辨率非常高)。因此,在这种情况下,WallTime是指从发出调用点到调用返回点之间经过的总时间量。ThreadTime是调度渲染线程时耗时量。这段时间将始终最多与WallTime一样

android - Gradle 同步失败 : Read Timed Out

这个问题在这里已经有了答案:AndroidStudioGradleBuildError:ReadTimeOut(21个答案)关闭2年前。#Project-wideGradlesettings.#IDE(e.g.AndroidStudio)users:#GradlesettingsconfiguredthroughtheIDE*willoverride*#anysettingsspecifiedinthisfile.#Formoredetailsonhowtoconfigureyourbuildenvironmentvisit#http://www.gradle.org/docs/cur

android - 读取 build/intermediates/data-binding-compiler/debug/dependent-lib-artifacts 目录的内容时出错

Error:Executionfailedfortask':syh_library:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug'.failure,seelogsfordetails.Errorreadingcontentsof/Users/Rock/workspace/android_workspase/syh-android/Syh/syh_library/build/intermediates/data-binding-compiler/debug/dependent-lib-artifactsdi

Kotlin: Module was compiled with an incompatible version of Kotlin

背景:使用intellij-idea工具,springboot项目,使用的maven问题:项目中没有依赖Kotlin,结果报错Kotlin版本问题,如下Kotlin:ModulewascompiledwithanincompatibleversionofKotlin.Thebinaryversionofitsmetadatais1.7.1,expectedversionis1.1.15.解决方案:JustgototheBuildmenuandclickontherebuildproject.只需要去Build菜单点击重建项目即可 参考文章:intellijidea-Error:Kotlin:M

el-date-picker自定义选择时间&&el-time-select自定义选择时间实现避免时间冲突

需求:开始日期不能小于结束日期,两个选择框之间的互相限制月份:固定十二个月,当月开始时间默认选择月第一天,结束时间默认选择月最后一天;月份选择只允许选择当前月份天:将当月对应的每天按照时间段划分,段数不做限制。时间段支持任意位置插入(新增)、删除。每个时间段具有包含属性,同一时刻不允许在两个时间段中出现包含。所有时间段之和必须满足24小时全覆盖且不允许交叉复制:点击同上,将上个月份的配置参数拷贝至当前月份代码实现开发环境:Vue需引入插件:ElementUI,moment.jstemplate——同上峰尖平谷{{itemy}}(含)(含)删除新增jsexportdefault{//import