草庐IT

final-class

全部标签

java - Kotlin : Cannot find symbol class Fragment or other android classes

我有一个带有viewPager的javafragment..publicclassFragmentWithViewPagerextendsFragment{privateclassViewPagerAdapterextendsFragmentStatePagerAdapter{ViewPagerAdapter(FragmentManagerfm){super(fm);}@OverridepublicFragmentgetItem(inti){Fragmentfragment=newDeshFalView();//现在我有另一个fragment,它将填充在上面的fragment中,并用k

windows - MINGW Git bash 中的 Maven 错误 : Could not find or load main class org. codehaus.plexus.classworlds.launcher.Launcher

我知道这个问题已经在几个问题中讨论过,但没有答案解决我的具体问题。我已经安装了Gitbash和Maven,我正在尝试使用Gitbash执行Maven。它因上述错误而中止。我的系统环境:Windows7Git2.13.3Maven3.5.0所需的用户变量:HOME=%HOMEPATH%M3_HOME=%MAVEN_HOME%MAVEN_HOME=path-with-no-blanksPath=%MAVEN_HOME%\binMaven在Windows命令提示符和Cygwin上运行良好。只有基于MINGW的Gitbash失败。我检查了以下bash脚本mvn:C:\path\to\maven

android - "can' t find referenced class"with Proguard and Kotlin

我在使用proguard和kotlin时遇到了一个奇怪的问题。我正在逐渐将一个proguarded项目转换为kotlin-到目前为止效果很好,但是在转换某些类时我遇到了proguard错误。我还不能分离出这些类的特殊属性是什么,所以它坏了——它们似乎与其他类没有什么不同。例如InputStreamWithSource只是:packageorg.ligi.passandroid.modelimportjava.io.InputStreamclassInputStreamWithSource(valsource:String,valinputStream:InputStream)它完全可以

android - "can' t find referenced class"with Proguard and Kotlin

我在使用proguard和kotlin时遇到了一个奇怪的问题。我正在逐渐将一个proguarded项目转换为kotlin-到目前为止效果很好,但是在转换某些类时我遇到了proguard错误。我还不能分离出这些类的特殊属性是什么,所以它坏了——它们似乎与其他类没有什么不同。例如InputStreamWithSource只是:packageorg.ligi.passandroid.modelimportjava.io.InputStreamclassInputStreamWithSource(valsource:String,valinputStream:InputStream)它完全可以

windows - 错误 : Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) when trying to register a background task windows phone 8. 1

当我尝试在安装此示例的WindowsPhone8.1中注册后台任务时http://code.msdn.microsoft.com/windowsapps/Tile-Update-every-minute-68dbbbff我收到这个错误:Classnotregistered(ExceptionfromHRESULT:0x80040154(REGDB_E_CLASSNOTREG))我使用这段代码:DimtaskBuilderAsNewBackgroundTaskBuilder()taskBuilder.Name=taskNametaskBuilder.TaskEntryPoint=task

windows - 如何防止 Windows 缓存 Com Class 信息?

Windows7正在缓存一些COM类信息。较旧的操作系统没有这样做。操作系统查找HKCU\Software\Classes\CLSID\{GUID}\LocalServer32值后,它会缓存该值,不再查找。当我们更新我们的软件时,我们将新的更新放在不同的目录中,然后更新HKCU\Software\Classes\CLSID\{GUID}\LocalServer32值以反射(reflect)新路径。下次软件运行时,如果运行在较旧的Windows操作系统下,它将使用最新的文件。但是,在Windows7上,它将继续使用旧文件,直到操作系统重新启动。我运行了进程监视器,发现在Windows7下

scala - Spark : variable pipeline in class BinaryJedis cannot be accessed 上的 Redis

我正在尝试从spark写入redis。但是我收到一个编译时错误,提示“无法在redis.clients.jedis.Jedis中访问类BinaryJedis中的变量管道”。我的代码如下(部分展示):importorg.sedis._importredis.clients.jedis._...valmyRDD=KafkaUtils.createStream(ssc,zkQuorum,group,topic).map(_._2).window(Seconds(300),Seconds(10))myRDD.foreachRDD(rdd=>{rdd.foreachPartition(it=>{

java - 移动类包时抛出 Serializable class not found CLASSNAME 错误(即使 serialVersionUID 已在类中说明)

我正在使用Redis(通过redisson)我有一个DTO类,我正在将其序列化并反序列化到Redis,我使用的编解码器是:org.redisson.codec.FstCodec尽管在类的DTO类中显式设置了serialVersionUID,但当我将该类移动到不同的命名空间时,我得到以下异常:java.io.IOException:java.lang.RuntimeException:classnotfoundCLASSNAME:db.data.coins.CoinDTOloader:jdk.internal.loader.ClassLoaders$AppClassLoader@6ed3

class - Kotlin 中另一个类中的密封类无法编译 : cannot access '<init>' it is private

如果我使用docs中的示例,classSomeActivity:AppCompatActivity(){sealedclassExprdataclassConst(valnumber:Double):Expr()dataclassSum(vale1:Expr,vale2:Expr):Expr()objectNotANumber:Expr()}无法编译,报错:Cannotaccess'',itisprivatein'Expr'.但是,将其移到封闭类之外使其可以编译:sealedclassExprdataclassConst(valnumber:Double):Expr()dataclas

class - Kotlin 中另一个类中的密封类无法编译 : cannot access '<init>' it is private

如果我使用docs中的示例,classSomeActivity:AppCompatActivity(){sealedclassExprdataclassConst(valnumber:Double):Expr()dataclassSum(vale1:Expr,vale2:Expr):Expr()objectNotANumber:Expr()}无法编译,报错:Cannotaccess'',itisprivatein'Expr'.但是,将其移到封闭类之外使其可以编译:sealedclassExprdataclassConst(valnumber:Double):Expr()dataclas