草庐IT

find_end

全部标签

android - 从方法 com.google.android.gms.common.GooglePlayServicesUtil.zza 引用获取错误 : Could not find class 'android.app.AppOpsManager' ,

当我尝试在API级别22之前的手机上运行该应用程序时,我收到此错误并且程序崩溃。但是该应用程序在API级别22的手机上运行正常。这可能是什么原因。这是我的依赖:dependencies{compile'com.google.code.gson:gson:2.3'compile'com.android.support:appcompat-v7:22.2.0'compile'com.android.support:recyclerview-v7:+'compile'com.android.support:support-v4:22.2.0'compile'com.google.androi

Android:在 res 中使用 SVG 会导致错误: "The file name must end with .xml or .png"

我刚刚更新了AndroidStudio1.2.1.1,现在gradle在我的资源文件夹中遇到了svg问题。我一直在毫无问题地使用SVG,我希望它们将来会被“允许”。:app:mergeDebugResources:app:mergeDebugResourcesFAILED/home/petergriffin/folder1/another-app/MyAwesome-App/app/src/main/res/drawable-hdpi/logo.svgError:Error:Thefilenamemustendwith.xmlor.pngError:Executionfailedfor

Android Alpha 动画 : Alpha value jumps back to old value after Animation ended

我在布局上有一个ImageButtonView。如果用户单击ImageButton,该按钮应淡出。按钮淡出动画将像这样启动:publicvoidbuttonClicked(ViewaButton){finalAnimationaAnim=newAlphaAnimation(1.0f,0.0f);aAnim.setDuration(500);aButton.startAnimation(aAnim);}这是有效的,但是一旦ImageButton淡出,它的Alpha值立即跳回1.0,按钮再次可见。我用一个动画监听器暂时解决了这个问题,它在动画结束时将ButtonImage设置为不可见,但这

android - 回收站 View : find last visible item immediately after view created

我在使用以下方法时遇到问题:intfirstVisibleItemPosition=gridLayoutManager.findFirstVisibleItemPosition();intlastVisibleItemPosition=gridLayoutManager.findLastVisibleItemPosition();我的目标:保存有关用户查看过哪些项目的分析数据。为了做到这一点,我在两种不同的场景中调用了这个方法:每次滚动到“空闲”状态,并检查哪些是可见项目。在那种情况下,我得到了预期的索引。当RecyclerView对用户“可见”时。现在就是问题开始的时候。我希望当包含

android - 错误 : failed to find target with hash string 'android-21'

我想将我的compileSdkVersion从23更改为21。所以我在build.gradle中进行了以下更改,但出现以下错误。我该如何解决这个问题?找不到哈希字符串为“android-21”的目标applyplugin:'com.android.application'android{compileSdkVersion21buildToolsVersion"21.1.2"defaultConfig{applicationId"com.example.shalabh.fly"minSdkVersion14targetSdkVersion21versionCode1versionName

android - 使用裁剪 Intent 获取 java.lang.SecurityException : Unable to find app for caller android. app.ApplicationThreadProxy@4266ae80

我正在使用cropintent来裁剪图像,大部分时间它运行良好,但有时会出现java.lang.SecurityException:Unabletofindappforcallerandroid.app.ApplicationThreadProxy@4266ae80我附加了logcat,08-0711:33:21.190:I/BugSenseHandler(3337):Registeringdefaultexceptionshandler08-0711:33:21.230:I/BugSenseHandler(3337):Flushing...08-0711:33:21.230:I/Bu

android - Android Marshmallow 的 ParseApacheHttpClient 问题 : can't find referenced method SSLSocketFactory. getHttpSocketFactory

我正在我的Android应用程序中处理AndroidMarshmallow支持,但我有使用已弃用的ApacheHTTPclient的依赖项(包括解析)。推荐here,我补充说:useLibrary'org.apache.http.legacy'在我的app/build.gradle中,但我仍然无法编译apk::app:compileFreeStoreDebugJavaWithJavacUP-TO-DATE:app:compileRetrolambdaFreeStoreDebugUP-TO-DATE:app:compileFreeStoreDebugSourcesUP-TO-DATE:a

android - 导入 android 项目 ("Gradle location is incorrect"或 "Cause: unexpected end of block data"时出错)

我想在AndroidStudio中导入Android项目,这就是问题开始的地方:1)如果我将Gradle设置为主页并单击“确定”,我会得到以下信息:2)其次,如果我尝试运行项目,我会收到消息:尝试两种方式都会导致显示上面的消息。我已正确设置GRADLE_HOME、JAVA_HOME,并且ANDROID_HOME指向android-studio目录中的“sdk”目录。非常感谢您提供解决方案。 最佳答案 指向文件夹/libexec.事情应该开始工作了。 关于android-导入android

android - 错误 : cannot find symbol method getDownloadUrl() of type com. google.firebase.storage.UploadTask.TaskSnapshot

在gradleupdate之前一切正常,但后来弹出这个错误。我引用了官方文档,它提供了相同的代码。NotacceptingthegetDownloadUrl()method我已经添加了最新的正确依赖项并且gradle同步成功。app/build.gradle这是firebase文档中提供的示例代码,与我的相同。FirebaseAssistant即使所有必需的东西都存在,我也无法理解可能会出现什么问题。自2天以来一直坚持这个问题,请帮忙! 最佳答案 正如Doug指出的那样,UploadTask.getDownloadUrl()已被弃用

android - 错误 : failed to find target with hash string 'android-14' in:Open Android SDK Manager

我知道这个问题在此之前已经被问过好几次了,但我正在寻找其他类型的答案。我只想运行一个项目,它给了我这个错误。Error:Aproblemoccurredconfiguringproject':app'.>failedtofindtargetwithhashstring'android-14'in:C:\Users\etc.OpenAndroidSDKManager我查看了我的AndroidSDK管理器,是的。我没有android14。然后我试图找到引用Andoid14的项目部分。但我一无所获。这是我的list那么哪一部分或哪一行真正要求Android14?