草庐IT

find_one

全部标签

android - 错误 : Could not find gradle wrapper within Android SDK (cordova + ionic)

运行ionicbuildandroid时ANDROID_HOME=/Library/Android/sdkJAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/HomeError:CouldnotfindgradlewrapperwithinAndroidSDK.MightneedtoupdateyourAndroidSDK.Lookedhere:/Library/Android/sdk/tools/templates/gradle/wrapper我尝试使用更新sdkandroid更新sdk-u

android - 如何在 adb shell 中使用 find 命令

我想检查我的android设备的目录中是否有某个文件。我在我的Windows批处理中使用以下行adbshellfind/mnt/sdcard/koinoxrista-nameBill.txt如果文件存在我想做一些事情,如果文件不存在我想做一些其他事情。我该怎么做? 最佳答案 adbshell不支持查找命令。此命令还将显示隐藏文件adbshellls-laR|grep文件名 关于android-如何在adbshell中使用find命令,我们在StackOverflow上找到一个类似的问题:

android - java.lang.ClassNotFoundException : Didn't find class on path: DexPathList , 更新sdk后

大家好我的应用程序直到昨天都运行良好,我昨天更新了我的SDK,它首先开始出错它给出了一个错误Noresourcefoundatvaluesv24....像这样的事情我通过更改build.gradle中的以下行搜索并解决了它compileSdkVersion25buildToolsVersion'25.0.2'现在错误消失了,它在更高的android版本7.1.1中完全正常运行但是当我运行低版本的android时,它给出了以下错误E/AndroidRuntime:FATALEXCEPTION:mainProcess:com.wowio.ebookreader,PID:15469java.

安卓 MVP : One Activity with Multiple Fragments

我有一个托管多个fragment的Activity,这些fragment定义了用户注册流程中的每个步骤。流程很复杂,下一步由前面步骤中的用户操作定义。流程如下:MainActivity|Fragment1-->Fragment2-->Fragment3-->Fragment4\-->Fragment5-->Fragment6在MVP之后,我为每个涉及的fragment设置了View和Presenter。我关心的是如何以MVP方式在Fragment和Activity之间进行通信。每个Fragment的结果都需要提供给Activity,以决定接下来需要显示哪个Fragment。我想到的一种

android - "Cannot find build.xml"构建Android SDK示例错误

日志是:BUILDFAILED/Users/xxx/sample/build.xml:114:Cannotfind/Users/xxx/Library/Android/Library/Android/sdk/tools/ant/build.xmlimportedfrom/Users/xxx/sample/build.xml我可以确认sdkdir是正确的。我发现/Users/xxx/Library/Android/Library/Android/sdk/tools/下没有ant目录我发现有人说是自动生成的。如何在tools/ant中制作这个build.xml?我使用Mac。

android - 压缩对齐错误 : The system cannot find the file specified

我输入:C:\ProgramFiles(x86)\Android\android-sdk\tools>zipalign[-f][-v]B10816062011-unaligned.apkB10816062011-aligned.apk它返回:系统找不到指定的文件。这让我发疯,因为我知道源文件就是我试图引导它的地方!有人知道或遇到过这个问题吗? 最佳答案 请避免使用[](方括号)和例如:D:\android-sdk\android-sdk\tools>zipalign-f-v4"C:\Users\name\Desktop\projec

android - 带有 ONE_SHOT 标志的未决 Intent

目前我有这段代码:publicstaticvoidsetupAlarm(Contextcontext){IntentmyIntent=newIntent(context,Receiver.class);PendingIntentpendingIntent=PendingIntent.getBroadcast(context,0,myIntent,PendingIntent.FLAG_NO_CREATE);if(pendingIntent!=null){return;}else{pendingIntent=PendingIntent.getBroadcast(context,PENDIN

android - 无法摆脱错误 "/usr/bin/ld: cannot find -lncurses"

我想运行命令:repoinit-uhttps://android.googlesource.com/platform/manifest-bandroid-4.1.1_r6得到如下输出:Traceback(mostrecentcalllast):File"/home/anu/bin/repo",line91,inimportreadlineImportError:Nomodulenamedreadline为了解决上述问题,我尝试使用命令pipinstallreadline安装readline和easy_installreadline,但两个命令都输出以下内容:/usr/bin/ld:ca

android - 错误 :Android Dex: Cannot find file\android-sdk-path\platform-tools\lib\dx. jar

我几天前拿到了最新的AndroidSDK。我在使用IntellijIDEA构建我的android应用程序时遇到了诸如标题之类的问题。我知道最新的androidsdk将dx.jar从platform-tools移动到一个名为build-tools的新文件夹。所以我想知道如何修复它? 最佳答案 我有同样的问题:AndroidPreDex:CannotfindfileD:\sdk\sdk\platform-tools\dx.jar我用简单的方法解决了它。文件dx.jar位于D:\sdk\sdk\platform-tools\lib。我把它

android - gradle : Could not find com. android.support :multidex:1. 0.1

当我使用gradle(version2.1or2.4)构建AndroidProject时,出现如下错误。我在我的文件中找不到com.android.support:multidex:1.0.1。错误:configissettoBF688C717A5C3A69FE8CA522643C0A68configissettoPRODUCTvcodeissetto151vnameissetto1.5.1FAILURE:Buildfailedwithanexception.*Whatwentwrong:Aproblemoccurredconfiguringproject':XXXX'.Couldno