草庐IT

non-void

全部标签

android - error "Process ' command './node_modules/expokit/detach-scripts/run-exp.sh' ' finished with non-zero exit value 1"whie getting android apk file

我有一个带有expokit工具的reactNative项目。现在我想从androidstudio获取一个apk输出文件。但我收到了这个错误:Process'command'./node_modules/expokit/detach-scripts/run-exp.sh''finishedwithnon-zeroexitvalue1如有任何帮助,我们将不胜感激。 最佳答案 运行“exppublish”并重试。希望这会有所帮助:) 关于android-error"Process'comman

android - 尝试调用虚方法'void android.widget.ListView.setAdapter

我正在尝试创建一个ListView,其中包含带有选项卡的viewpager上的fragment中的图片和文本,因此我可以向左或向右滑动以调出另一个fragment。我是android的新手,所以我所做的可能是完全错误的。我可以完美地构建项目,但是当模拟器运行时它崩溃了(日志显示在页面底部)。我创建了一个单独的应用程序并成功创建了一个ListView,但是当我尝试像这样将它组合到一个fragment中时,它不起作用。这是我的以下代码MainActivity.javaimportjava.util.ArrayList;importjava.util.List;importjava.util

Android Span or Non-Breaking Space Causing line break and text duplication (4.0 ICS)

我正在使用多个大量使用span的TextView。问题:有时在我的应用程序中(特别是在IceCreamSandwich上)我会看到文本字符串中没有的换行符以及文本重复。有关示例,请参见下图。请注意第三个句子是如何开始的,然后是换行符,然后文本被复制,句子结束。代码:tv=(TextView)inflater.inflate(R.layout.fragment_reader_list_item,parent,false);SpannableStringBuilderssb=ssbList.get(position);tv.setText(ssb,BufferType.SPANNABLE)

android - 错误 : The argument type 'void Function(ImageInfo, bool)' can't be assigned to the parameter type 'ImageStreamListener'

升级flutterrun后,应用无法运行。我升级是因为ImageStreamListener我试图改变不同的channel[master,stable,dev]并且不起作用。我找到了thisFlutter中的问题,但没有帮助。这是我的flutter医生[✓]Flutter(Channelunknown,v1.7.11,onMacOSX10.14.518F132,localeen-PE)[✓]Androidtoolchain-developforAndroiddevices(AndroidSDKversion28.0.3)[✓]Xcode-developforiOSandmacOS(Xc

android - 错误 : The argument type 'void Function(ImageInfo, bool)' can't be assigned to the parameter type 'ImageStreamListener'

升级flutterrun后,应用无法运行。我升级是因为ImageStreamListener我试图改变不同的channel[master,stable,dev]并且不起作用。我找到了thisFlutter中的问题,但没有帮助。这是我的flutter医生[✓]Flutter(Channelunknown,v1.7.11,onMacOSX10.14.518F132,localeen-PE)[✓]Androidtoolchain-developforAndroiddevices(AndroidSDKversion28.0.3)[✓]Xcode-developforiOSandmacOS(Xc

android - 错误 : "Cannot make a static reference to the non-static method findViewById(int) from the type Activity"

我是Java的新手,正在尝试使用EditText创建一个Activity。创建时,它加载当前日期,当用户选择EditText时,它显示一个DatePicker。用户选择日期后,我需要将结果放入EditText。但是,我目前收到以下错误:Cannotmakeastaticreferencetothenon-staticmethodfindViewById(int)fromthetypeActivity我知道我不能对非静态方法进行静态引用。我试图删除所有静态引用,但这给了我其他错误。我的代码如下。您能帮我提供一些示例代码,说明我如何才能完成这项工作吗?错误出在我尝试将结果放入EditTex

android - 由于 Lollipop 中的 'void dalvik.system.CloseGuard.close()' 导致的 NullPointerException

这个问题在这里已经有了答案:WhatisaNullPointerException,andhowdoIfixit?(12个答案)关闭4年前。此贴于去年编辑送审未能重开帖子:原始关闭原因未解决当我的应用程序在AndroidOSLollipop中运行时,我在后台遇到以下异常。无法找出它的确切位置或在我的代码中对它的任何引用。02-2317:58:14.145:E/System(16417):Uncaughtexceptionthrownbyfinalizer02-2317:58:14.146:E/System(16417):java.lang.NullPointerException:At

android - Gradle 不会将 gdbserver 打包成 apk。 ndk-gdb 结果为 "ERROR: Non-debuggable application installed on the target device"

在AndroidStudio0.6中,我创建了一个android测试项目,其中包含一个用JNI封装的非常简单的C函数。我在AndroidManifest.xml中设置了android:debuggable="true"。我运行了ndk-buildNDK_DEBUG=1。这会在正确的位置生成一个gdbserver和一个gdb.setup文件。但是,当我在AndroidStudio中构建项目并运行ndk-gdb--debug时,我得到了以下输出:AndroidNDKinstallationpath:/usr/local/android-ndk-r9dUsingdefaultadbcomma

安卓工作室 : Unexpected top level exception (finished with non-zero exit value 2. 。)

当我尝试调试我的Android应用程序时,我收到以下错误消息:Error:Executionfailedfortask':app:transformClassesWithDexForDebug'.com.android.build.transform.api.TransformException:com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException:Process'command'/Library/Java/JavaVirtualMachines/jdk1.8.

android - java.lang.IllegalAccessError : Method 'void android.support.v4.content.ContextCompat.' is inaccessible to class 'com.google.android.gms.iid.zzd' 错误

当我将我的目标sdk级别从23.0.2更改为25.0.1时。我的应用程序在以下行崩溃。我应该怎么做才能避免这次崩溃?请提出更改建议。InstanceIDinstanceID=InstanceID.getInstance(getContext());错误日志:AndroidRuntime:FATALEXCEPTION:AsyncTask#2Process:com.tuitoapp.admin,PID:19012java.lang.RuntimeException:AnerroroccuredwhileexecutingdoInBackground()Causedby:java.lang.