草庐IT

com-state

全部标签

android - com.android.volley.NoConnectionError : javax.net.ssl.SSLHandshakeException : javax.net.ssl.SSLProtocolException:SSL 握手中止:

我在我的应用程序中使用Android中的Volley库,当我尝试向我们的服务器发出POST请求时,我收到以下错误:com.android.volley.NoConnectionError:javax.net.ssl.SSLHandshakeException:javax.net.ssl.SSLProtocolException:SSLhandshakeaborted:ssl=0x6821edb0:FailureinSSLlibrary,usuallyaprotocolerrorerror:1407743E:SSLroutines:SSL23_GET_SERVER_HELLO:tlsv1

android - 找不到 com.android.support :appcompat-v7:24. 2.0

今天我更新了一个新的SDK,然后我的项目引起了问题打击。我已经下载了AndroidSupportRepository,但仍然没有用。错误:配置项目“:app”时出现问题。Couldnotresolvealldependenciesforconfiguration':app:_debugCompile'.Couldnotfindcom.android.support:appcompat-v7:24.2.0.Searchedinthefollowinglocations:file:/C:/ProgramFiles/Android/AndroidStudio/gradle/m2reposit

android - LocationServices.FusedLocationApi.removeLocationUpdates(mGoogleApiClient, 这个);尝试转换为 com.google.android.gms.location.LocationListener)

我已经在Android上设置了一个基于位置的map,但是当我尝试调用时:LocationServices.FusedLocationApi.removeLocationUpdates(mGoogleApiClient,this);Androidstudio试图让我将其转换为LocationServices.FusedLocationApi.removeLocationUpdates(mGoogleApiClient,(com.google.android.gms.location.LocationListener)this);然而,这会导致应用程序在调用时崩溃。我的应用有以下位置代码:

android - 库 com.google.firebase :firebase-analytics is being requested by various other libraries

更新Firebase库时出现此错误:Thelibrarycom.google.firebase:firebase-analyticsisbeingrequestedbyvariousotherlibrariesat[[15.0.1,16.0.0),[16.0.1,16.0.1],[16.0.1,99999]],butresolvesto16.0.1.Disablethepluginandcheckyourdependenciestreeusing./gradlew:app:dependencies.依赖项是:implementation'com.google.firebase:fire

Android ConnectivityManager 没有看到权限 ACCESS_NETWORK_STATE

我有想要读取网络连接状态的简单代码。我已经向AndroidManifest.xml添加了权限:我尝试访问网络状态的代码:ConnectivityManagerconmgr=(ConnectivityManager)ctx.getSystemService(Context.CONNECTIVITY_SERVICE);NetworkInfoninfo=conmgr.getActiveNetworkInfo();以及抛出的错误:E/AndroidRuntime(7650):java.lang.SecurityException:ConnectivityService:Neitheruser1

android - 程序类型已经存在 : com. google.common.util.concurrent.ListenableFuture Duplicate Class

我无法构建我的项目,每尝试添加一个新的依赖项,我都会遇到一大堆新错误。我尝试使用IDE将我的项目迁移到androidx库,但这并没有解决任何问题。现在我有这些库:dependencies{implementationfileTree(dir:'libs',include:['*.jar'])compile('com.google.apis:google-api-services-youtube:v3-rev206-1.25.0'){excludegroup:'org.apache.httpcomponents'}compile'androidx.appcompat:appcompat:

android - 如何在 Android Studio 中导入 com.google.maps.android.SphericalUtil?

我已经在Googlemap上处理了多边形,现在我想使用SphericalUtil.computeArea()计算绘制的多边形的面积,但我无法导入com.Google.maps.android.SphericalUtil.我已经添加了Googleplay服务,也添加了uses-library"android:name="com.Google.android.maps"进入list。 最佳答案 在AndroidStudio-您必须将以下依赖项添加到您的Gradle构建文件中:dependencies{compile'com.google

android - 无法更新 Firebase 依赖项 (com.google.firebase)

我已将Firebase添加到Android应用程序以进行推送通知。我在使用之前更新了build.gradle。它工作正常。compile'com.google.firebase:firebase-messaging:9.2.0'现在我已经更新到最新的库但出现错误。dependencies{//....compile'com.google.firebase:firebase-core:10.0.1'}重建项目时出现错误Error:Aproblemoccurredconfiguringproject':app'.Couldnotresolvealldependenciesforconfig

android - 无法导入 com.squareup.okhttp.OkHttpClient;

我正在开发androidstudio并从网络上获取一些数据。我尝试使用OkHttpClient并将jars添加到我的项目文件夹,但我仍然无法导入它。它显示无法解析符号okhttp。我尝试了一些解决方案但无法解决问题。这是我的build.gradle文件applyplugin:'com.android.application'android{compileSdkVersion23buildToolsVersion"23.0.0"defaultConfig{applicationId"com.example.app"minSdkVersion14targetSdkVersion23vers

Android Activity 生命周期 : state order when new activity starts

如果我通过这种方式从Activity1启动Activity2:startActivity(Activity2);首先执行的是:onStop()(Activity1)或onStart()(Activity2)?它们是同时工作还是轮流工作?如果一个接着一个,那么第一个是什么?所以一般来说:当第一个Activity第二个开始时,Activity的状态顺序是什么,如果这个顺序存在的话? 最佳答案 假设ActivityA通过调用StartActivity(Intent)方法启动ActivityB,然后生命周期调用如下:-一个onCreate(