草庐IT

entry_date

全部标签

android - Eclipse 中的 RoboLectric 和 Android(警告 : no system properties value for ro. build.date.utc)

我收到这个警告:RoboLectricandEclipse(WARNING:nosystempropertiesvalueforro.build.date.utc)我最初添加了具有依赖项的RoboLectric2.1Jar。当我第一次运行JUnit时,它会在控制台中下载一些东西。之后,每次我运行测试时都会出现错误。我尝试获取具有依赖项的RoboLectric2.2Jar快照,但这并没有解决问题。有人知道问题出在哪里吗?我已经尝试过这些东西了:将我的list路径添加到org.robolectric.Config.properties文件。使用GitHub上提出的这个VM参数-XX:-Us

android - zip 异常 : duplicate entry on Kotlin classes

请注意,在升级到AndroidStudio3.1、Gradle构建工具3.1.0和GradleWrapper4.4之前,此项目编译成功。Gradle任务transformClassesAndResourcesWithPrepareIntermediateJarsForSomethingDebug过程中出现异常:Causedby:java.util.zip.ZipException:duplicateentry:com/me/utils/model/singleModel/NodeModel.class请注意,异常仅发生在Kotlin类(如上面的NodeModel)上。如果我删除这个类,

java.util.zip.ZipException : duplicate entry :how to overcome

我在我的项目中使用了多个Android库和模块。每个都有自己的v4.Support库。我收到了java.util.zip.ZipException:duplicateentry。当我在项目中搜索重复的类文件时,这些类有多个文件,因为每个库中有多个v4.support库。我知道这个问题在这里被问过很多次,但对我没有任何帮助。我的问题是:如何删除这些多个v4.support文件?我只想把这个v4.support库放一次,所有其他模块都应该从那里引用它。我如何实现这一点?以下是我的build.gradle脚本//Top-levelbuildfilewhereyoucanaddconfigur

android - 如何从 Date 对象设置 Android Chronometer 基准时间?

我遇到了从特定时间开始计时器的问题。有一个Date对象,我希望我的计时器从以下位置开始:Dated=newDate();//now,justforexamplechronometer.setBase(d.getTime());//longvalueofdLog.d("Date:","d.getTime()timeis["+d.getTime()+"]");Log.d("Chron:","chronometer.getBase()is["+chronometer.getBase()+"]");//let'sprintoutelapsedRealtimefromofficialsample

android - WARN in logcat ResourceType : For resource . .., entry index(...) is beyond type entryCount(1)

每次应用程序呈现某些布局时,我都会在logcat上收到这些警告。试图搜索但找不到线索。我认为与资源(可绘制对象、字符串或值)有关,但我不知道是什么原因造成的。这不是错误,但有点烦人。有人有想法吗?04-2215:28:33.20421943-21943/xx.xxx.xxxxxxx.xxxxx.xxxxxW/ResourceType﹕Forresource0x01030128,entryindex(296)isbeyondtypeentryCount(1)04-2215:28:33.20421943-21943/xx.xxx.xxxxxxx.xxxxx.xxxxxW/ResourceT

Android 签名错误 : trusted certificate entries are not password-protected

获得了一个证书来签署android未签名的发布apk文件,所以我使用命令导入了cer:keytool-import-aliasalias_name-filecer_name.cer-storepasschangeit-keystoremy_keystore.keystore但是当使用androidstudio签署应用程序时它会产生错误:Error:Executionfailedfortask':packageDebug'.>com.android.ide.common.signing.KeytoolException:Failedtoreadkeyalias_namefromstore

android - 将 native : Change the Entry file path index. android.js react 到指定的自定义文件路径

我需要将Entry文件路径更改为src/XXXApp.android.js而不是指向默认的index.android.js文件。我想将JS文件保存在单独的./src文件夹中。所以我在./android/app/build.gradle中做了更改,比如project.ext.react=[bundleAssetName:"src/XXXApp.android.bundle",entryFile:file("../../src/XXXApp.android.js"),root:"../../../../",inputExcludes:["android/**","./**"]]并且在.\n

安卓 :app:transformClassesWithJarMergingForDebug FAILED - ZipException: duplicate entry

抱歉,如果我问了一个重复的问题,但我找不到解决此错误的方法。我浏览了stackoverflow、gradle站点、android博客、谷歌搜索,但几个小时都没有找到有效的解决方案。我是Android初学者,所以我不确定我是否遗漏了其他帖子中的内容。applyplugin:'com.android.application'applyplugin:'com.google.gms.google-services'android{compileSdkVersion23buildToolsVersion"23.0.0"defaultConfig{minSdkVersion14targetSdkV

android - 如何将 Java.Util.Date 转换为 System.DateTime

在Xamarin.Android中,您可以同时使用.NET和Java。我得到了Java.Util.Date的返回值,然后我需要输入与只接受System.DateTime的参数相同的值我现在是这样publicstaticDateTimeConvertJavaDateToDateTime(Datedate){vara=date.ToGMTString();varb=date.ToLocaleString();varc=date.ToString();DateTimedatetime=DateTime.ParseExact(date.ToGMTString(),"ddMMMyyyyHH:mm

c++ - unique_ptr : linked list entry deletion

我目前正在考虑借助unique_ptr实现单链表。尽管由于析构函数的递归调用(请参阅Stackoverflowwithunique_ptrlinkedlist)可能会出现堆栈溢出的问题,但我还是遇到了以下问题:假设,我们有以下链表的实现structnode{node(void):val(0),next(nullptr){}intval;std::unique_ptrnext;};并且我们已经根据初始化了我们的列表intmain(intargc,char*argv[]){nodeHEAD;HEAD.val=0;autoptr=&HEAD;for(inti=0;ival=i;ptr->ne