最新消息:20210917 已从crifan.com换到crifan.org

【未解决】Android Studio中gradle编译rcjsta项目多个使用或覆盖了已过时的API等报错

Android crifan 649浏览 0评论
折腾:
【未解决】rcsjta的RI启动报错:Cannot connect service API Failed to get result for com.gsma.services.rcs.action.GET_SERVICE_STARTING_STATE
期间,用Android Studio和升级后的gradle去编译rcsjta的项目,期间log中
Executing tasks: [clean, :cts_signature:assembleDebug, :RI:assembleDebug, :notification:assembleDebug, :tts:assembleDebug, :core:assembleDebug, :cts_provider:assembleDebug, :api_cnx:assembleDebug, :settings:assembleDebug, :provisioning:assembleDebug, :nist_sip:assembleDebug, :mediaplayer:assembleDebug, :extension:assembleDebug, :bouncycastle:assembleDebug, :api:assembleDebug] in project /Users/xxx/dev/xxx/RCS/rcsjta


> Task :api:clean UP-TO-DATE
> Task :api_cnx:clean UP-TO-DATE
> Task :bouncycastle:clean UP-TO-DATE
> Task :core:clean UP-TO-DATE
> Task :cts_provider:clean UP-TO-DATE
> Task :cts_signature:clean UP-TO-DATE
> Task :extension:clean UP-TO-DATE
> Task :mediaplayer:clean UP-TO-DATE
> Task :nist_sip:clean UP-TO-DATE
> Task :notification:clean UP-TO-DATE
> Task :provisioning:clean UP-TO-DATE
> Task :RI:clean UP-TO-DATE
> Task :settings:clean UP-TO-DATE
> Task :tts:clean UP-TO-DATE
> Task :cts_signature:preBuild UP-TO-DATE
> Task :cts_signature:preDebugBuild UP-TO-DATE
> Task :cts_signature:compileDebugAidl NO-SOURCE
> Task :cts_signature:compileDebugRenderscript NO-SOURCE
> Task :cts_signature:generateDebugBuildConfig
> Task :cts_signature:generateDebugResValues
> Task :cts_signature:generateDebugResources
> Task :cts_signature:createDebugCompatibleScreenManifests
> Task :cts_signature:extractDeepLinksDebug
> Task :cts_signature:processDebugManifest
> Task :cts_signature:mergeDebugShaders
> Task :cts_signature:compileDebugShaders NO-SOURCE
> Task :cts_signature:generateDebugAssets UP-TO-DATE
> Task :cts_signature:mergeDebugAssets
> Task :cts_signature:processDebugJavaRes NO-SOURCE
> Task :cts_signature:mergeDebugJavaResource
> Task :cts_signature:checkDebugDuplicateClasses
> Task :cts_signature:mergeExtDexDebug
> Task :cts_signature:mergeDebugJniLibFolders
> Task :cts_signature:mergeDebugNativeLibs
> Task :cts_signature:stripDebugDebugSymbols NO-SOURCE
> Task :cts_signature:validateSigningDebug
> Task :api:preBuild UP-TO-DATE
> Task :api:preDebugBuild UP-TO-DATE
> Task :api:compileDebugAidl
> Task :api:compileDebugRenderscript NO-SOURCE
> Task :api:generateDebugBuildConfig
> Task :api:generateDebugResValues
> Task :api:generateDebugResources
> Task :api:packageDebugResources
> Task :api:parseDebugLocalResources
> Task :api_cnx:preBuild UP-TO-DATE
> Task :api_cnx:preDebugBuild UP-TO-DATE
> Task :api_cnx:compileDebugAidl NO-SOURCE
> Task :api:packageDebugRenderscript NO-SOURCE
> Task :api_cnx:compileDebugRenderscript NO-SOURCE
> Task :api_cnx:generateDebugBuildConfig
> Task :api_cnx:generateDebugResValues
> Task :api_cnx:generateDebugResources
> Task :api_cnx:packageDebugResources
> Task :api:javaPreCompileDebug
> Task :api:processDebugManifest
> Task :api_cnx:processDebugManifest
> Task :api_cnx:parseDebugLocalResources
> Task :mediaplayer:preBuild UP-TO-DATE
> Task :mediaplayer:preDebugBuild UP-TO-DATE
> Task :mediaplayer:compileDebugAidl NO-SOURCE
> Task :mediaplayer:compileDebugRenderscript
> Task :api:generateDebugRFile


> Task :api:compileDebugJavaWithJavac
注: /Users/xxx/dev/xxx/RCS/rcsjta/libs/api/src/main/java/com/gsma/services/rcs/extension/MultimediaMessagingSessionListenerImpl.java使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。


> Task :mediaplayer:generateDebugBuildConfig
> Task :mediaplayer:generateDebugResValues
> Task :mediaplayer:generateDebugResources
> Task :mediaplayer:packageDebugResources
> Task :api_cnx:generateDebugRFile
> Task :RI:preBuild UP-TO-DATE
> Task :RI:preDebugBuild UP-TO-DATE
> Task :RI:compileDebugAidl NO-SOURCE
> Task :api_cnx:packageDebugRenderscript NO-SOURCE
> Task :mediaplayer:packageDebugRenderscript NO-SOURCE
> Task :RI:compileDebugRenderscript
> Task :RI:generateDebugBuildConfig
> Task :api:bundleLibCompileToJarDebug
> Task :api_cnx:javaPreCompileDebug
> Task :api_cnx:compileDebugJavaWithJavac
> Task :cts_signature:javaPreCompileDebug
> Task :api:compileDebugLibraryResources
> Task :api_cnx:compileDebugLibraryResources
> Task :RI:generateDebugResValues
> Task :RI:generateDebugResources
> Task :RI:javaPreCompileDebug
> Task :api:extractDeepLinksDebug
> Task :api_cnx:extractDeepLinksDebug
> Task :mediaplayer:extractDeepLinksDebug
> Task :RI:createDebugCompatibleScreenManifests
> Task :RI:extractDeepLinksDebug
> Task :api:mergeDebugShaders
> Task :api:compileDebugShaders NO-SOURCE
> Task :api:generateDebugAssets UP-TO-DATE
> Task :api:packageDebugAssets
> Task :api_cnx:mergeDebugShaders
> Task :api_cnx:compileDebugShaders NO-SOURCE
> Task :api_cnx:generateDebugAssets UP-TO-DATE
> Task :api_cnx:packageDebugAssets
> Task :mediaplayer:mergeDebugShaders
> Task :mediaplayer:compileDebugShaders NO-SOURCE
> Task :mediaplayer:generateDebugAssets UP-TO-DATE
> Task :mediaplayer:packageDebugAssets
> Task :RI:mergeDebugShaders
> Task :RI:compileDebugShaders NO-SOURCE
> Task :RI:generateDebugAssets UP-TO-DATE
> Task :RI:mergeDebugAssets
> Task :api:processDebugJavaRes NO-SOURCE
> Task :api:bundleLibResDebug NO-SOURCE
> Task :api_cnx:processDebugJavaRes NO-SOURCE
> Task :api_cnx:bundleLibResDebug NO-SOURCE
> Task :mediaplayer:processDebugJavaRes NO-SOURCE
> Task :mediaplayer:bundleLibResDebug NO-SOURCE
> Task :RI:processDebugJavaRes NO-SOURCE
> Task :mediaplayer:processDebugManifest
> Task :RI:processDebugManifest
> Task :mediaplayer:compileDebugLibraryResources
> Task :api_cnx:bundleLibRuntimeToJarDebug
> Task :mediaplayer:parseDebugLocalResources
> Task :RI:mergeDebugResources
> Task :RI:checkDebugDuplicateClasses
> Task :mediaplayer:generateDebugRFile
> Task :RI:processDebugResources
> Task :api:mergeDebugJniLibFolders
> Task :api:bundleLibRuntimeToJarDebug
> Task :mediaplayer:javaPreCompileDebug
> Task :mediaplayer:compileDebugJavaWithJavac
> Task :api_cnx:bundleLibCompileToJarDebug
> Task :RI:mergeDebugJavaResource
> Task :api_cnx:mergeDebugJniLibFolders
> Task :cts_signature:mergeDebugResources
> Task :cts_signature:processDebugResources
> Task :cts_signature:compileDebugJavaWithJavac
> Task :cts_signature:compileDebugSources
> Task :cts_signature:dexBuilderDebug
> Task :mediaplayer:bundleLibCompileToJarDebug


> Task :RI:compileDebugJavaWithJavac
注: 某些输入文件使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
注: /Users/xxx/dev/xxx/RCS/rcsjta/RI/src/com/gsma/rcs/ri/messaging/geoloc/DisplayGeoloc.java使用了未经检查或不安全的操作。
注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。


> Task :RI:compileDebugSources
> Task :RI:dexBuilderDebug
> Task :mediaplayer:mergeDebugJniLibFolders
> Task :cts_signature:mergeDexDebug
> Task :cts_signature:packageDebug
> Task :cts_signature:assembleDebug
> Task :RI:mergeDebugJniLibFolders
> Task :RI:validateSigningDebug
> Task :notification:preBuild UP-TO-DATE
> Task :notification:preDebugBuild UP-TO-DATE
> Task :notification:compileDebugAidl NO-SOURCE
> Task :notification:compileDebugRenderscript
> Task :notification:generateDebugBuildConfig
> Task :mediaplayer:mergeDebugNativeLibs
> Task :mediaplayer:stripDebugDebugSymbols NO-SOURCE
> Task :mediaplayer:copyDebugJniLibsProjectOnly
> Task :notification:generateDebugResValues
> Task :notification:generateDebugResources
> Task :notification:javaPreCompileDebug
> Task :notification:createDebugCompatibleScreenManifests
> Task :notification:extractDeepLinksDebug
> Task :notification:processDebugManifest
> Task :notification:mergeDebugShaders
> Task :notification:compileDebugShaders NO-SOURCE
> Task :notification:generateDebugAssets UP-TO-DATE
> Task :notification:mergeDebugAssets
> Task :notification:processDebugJavaRes NO-SOURCE
> Task :notification:mergeDebugResources
> Task :notification:processDebugResources
> Task :notification:compileDebugJavaWithJavac
> Task :notification:compileDebugSources
> Task :api:mergeDebugNativeLibs
> Task :api:stripDebugDebugSymbols NO-SOURCE
> Task :api:copyDebugJniLibsProjectOnly
> Task :notification:checkDebugDuplicateClasses
> Task :notification:dexBuilderDebug
> Task :notification:mergeDebugJniLibFolders
> Task :api_cnx:mergeDebugNativeLibs
> Task :api_cnx:stripDebugDebugSymbols NO-SOURCE
> Task :api_cnx:copyDebugJniLibsProjectOnly
> Task :notification:mergeDebugJavaResource
> Task :notification:validateSigningDebug
> Task :tts:preBuild UP-TO-DATE
> Task :tts:preDebugBuild UP-TO-DATE
> Task :RI:mergeExtDexDebug
> Task :tts:compileDebugAidl NO-SOURCE
> Task :tts:compileDebugRenderscript
> Task :tts:generateDebugBuildConfig
> Task :tts:generateDebugResValues
> Task :tts:generateDebugResources
> Task :notification:mergeDebugNativeLibs
> Task :notification:stripDebugDebugSymbols NO-SOURCE
> Task :tts:createDebugCompatibleScreenManifests
> Task :tts:extractDeepLinksDebug
> Task :tts:processDebugManifest
> Task :tts:mergeDebugShaders
> Task :tts:compileDebugShaders NO-SOURCE
> Task :tts:generateDebugAssets UP-TO-DATE
> Task :tts:mergeDebugAssets
> Task :tts:processDebugJavaRes NO-SOURCE
> Task :tts:mergeDebugResources
> Task :tts:processDebugResources
> Task :tts:mergeDebugJavaResource
> Task :tts:checkDebugDuplicateClasses
> Task :tts:javaPreCompileDebug


> Task :tts:compileDebugJavaWithJavac
注: 某些输入文件使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。


> Task :tts:compileDebugSources
> Task :tts:dexBuilderDebug
> Task :tts:mergeDebugJniLibFolders
> Task :tts:validateSigningDebug
> Task :bouncycastle:preBuild UP-TO-DATE
> Task :bouncycastle:preDebugBuild UP-TO-DATE
> Task :bouncycastle:compileDebugAidl NO-SOURCE
> Task :bouncycastle:compileDebugRenderscript
> Task :bouncycastle:generateDebugBuildConfig
> Task :bouncycastle:generateDebugResValues
> Task :bouncycastle:generateDebugResources
> Task :bouncycastle:packageDebugResources
> Task :RI:mergeDebugNativeLibs


> Task :RI:stripDebugDebugSymbols
WARNING: Compatible side by side NDK version was not found. Default is 21.0.6113669.
Compatible side by side NDK version was not found. Default is 21.0.6113669.
Unable to strip the following libraries, packaging them as they are: libH264Decoder.so, libH264Encoder.so.


> Task :bouncycastle:parseDebugLocalResources
> Task :notification:mergeExtDexDebug
> Task :bouncycastle:processDebugManifest
> Task :core:preBuild UP-TO-DATE
> Task :core:preDebugBuild UP-TO-DATE
> Task :nist_sip:preBuild UP-TO-DATE
> Task :nist_sip:preDebugBuild UP-TO-DATE
> Task :nist_sip:compileDebugAidl NO-SOURCE
> Task :core:compileDebugAidl NO-SOURCE
> Task :bouncycastle:packageDebugRenderscript NO-SOURCE
> Task :nist_sip:packageDebugRenderscript NO-SOURCE
> Task :core:compileDebugRenderscript
> Task :core:generateDebugBuildConfig
> Task :bouncycastle:generateDebugRFile
> Task :core:javaPreCompileDebug
> Task :core:generateDebugResValues
> Task :core:generateDebugResources
> Task :nist_sip:compileDebugRenderscript
> Task :nist_sip:generateDebugResValues
> Task :nist_sip:generateDebugResources
> Task :nist_sip:packageDebugResources
> Task :bouncycastle:extractDeepLinksDebug
> Task :core:createDebugCompatibleScreenManifests
> Task :core:extractDeepLinksDebug
> Task :nist_sip:extractDeepLinksDebug
> Task :tts:mergeExtDexDebug
> Task :notification:mergeDexDebug
> Task :notification:packageDebug
> Task :notification:assembleDebug
> Task :bouncycastle:compileDebugLibraryResources
> Task :core:mergeDebugResources
> Task :nist_sip:generateDebugBuildConfig
> Task :nist_sip:parseDebugLocalResources
> Task :nist_sip:processDebugManifest
> Task :core:processDebugManifest
> Task :nist_sip:javaPreCompileDebug
> Task :bouncycastle:mergeDebugShaders
> Task :bouncycastle:compileDebugShaders NO-SOURCE
> Task :bouncycastle:generateDebugAssets UP-TO-DATE
> Task :bouncycastle:packageDebugAssets
> Task :core:mergeDebugShaders
> Task :core:compileDebugShaders NO-SOURCE
> Task :core:generateDebugAssets UP-TO-DATE
> Task :nist_sip:mergeDebugShaders
> Task :nist_sip:compileDebugShaders NO-SOURCE
> Task :nist_sip:generateDebugAssets UP-TO-DATE
> Task :nist_sip:packageDebugAssets
> Task :core:mergeDebugAssets
> Task :bouncycastle:processDebugJavaRes NO-SOURCE
> Task :bouncycastle:bundleLibResDebug NO-SOURCE
> Task :core:processDebugJavaRes NO-SOURCE
> Task :nist_sip:processDebugJavaRes NO-SOURCE
> Task :nist_sip:bundleLibResDebug NO-SOURCE
> Task :bouncycastle:javaPreCompileDebug


> Task :bouncycastle:compileDebugJavaWithJavac
注: 某些输入文件使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
注: 某些输入文件使用了未经检查或不安全的操作。
注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。


> Task :mediaplayer:bundleLibRuntimeToJarDebug
> Task :core:mergeDebugJavaResource
> Task :tts:mergeDexDebug
> Task :core:checkDebugDuplicateClasses
> Task :tts:mergeDebugNativeLibs
> Task :tts:stripDebugDebugSymbols NO-SOURCE
> Task :tts:packageDebug
> Task :tts:assembleDebug
> Task :bouncycastle:mergeDebugJniLibFolders
> Task :core:mergeDebugJniLibFolders
> Task :nist_sip:mergeDebugJniLibFolders
> Task :bouncycastle:bundleLibRuntimeToJarDebug
> Task :nist_sip:compileDebugLibraryResources
> Task :core:validateSigningDebug
> Task :cts_provider:preBuild UP-TO-DATE
> Task :cts_provider:preDebugBuild UP-TO-DATE
> Task :cts_provider:compileDebugAidl NO-SOURCE
> Task :cts_provider:compileDebugRenderscript NO-SOURCE
> Task :cts_provider:generateDebugBuildConfig
> Task :bouncycastle:mergeDebugNativeLibs
> Task :bouncycastle:stripDebugDebugSymbols NO-SOURCE
> Task :bouncycastle:copyDebugJniLibsProjectOnly
> Task :cts_provider:generateDebugResValues
> Task :cts_provider:generateDebugResources
> Task :nist_sip:generateDebugRFile
> Task :core:processDebugResources
> Task :core:mergeExtDexDebug


> Task :nist_sip:compileDebugJavaWithJavac
注: 某些输入文件使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
注: 某些输入文件使用了未经检查或不安全的操作。
注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。


> Task :cts_provider:javaPreCompileDebug
> Task :RI:mergeDexDebug
> Task :RI:packageDebug
> Task :RI:assembleDebug
> Task :cts_provider:createDebugCompatibleScreenManifests
> Task :cts_provider:extractDeepLinksDebug
> Task :cts_provider:processDebugManifest
> Task :cts_provider:mergeDebugShaders
> Task :cts_provider:compileDebugShaders NO-SOURCE
> Task :cts_provider:generateDebugAssets UP-TO-DATE
> Task :cts_provider:mergeDebugAssets
> Task :cts_provider:processDebugJavaRes NO-SOURCE
> Task :cts_provider:checkDebugDuplicateClasses
> Task :cts_provider:mergeDebugResources
> Task :cts_provider:processDebugResources
> Task :cts_provider:compileDebugJavaWithJavac
> Task :cts_provider:compileDebugSources
> Task :cts_provider:dexBuilderDebug
> Task :cts_provider:mergeDebugJniLibFolders
> Task :bouncycastle:bundleLibCompileToJarDebug
> Task :cts_provider:validateSigningDebug
> Task :api_cnx:copyDebugJniLibsProjectAndLocalJars
> Task :api_cnx:extractDebugAnnotations
> Task :api_cnx:mergeDebugGeneratedProguardFiles UP-TO-DATE
> Task :api_cnx:mergeDebugConsumerProguardFiles UP-TO-DATE
> Task :api_cnx:prepareLintJarForPublish UP-TO-DATE
> Task :nist_sip:bundleLibRuntimeToJarDebug
> Task :cts_provider:mergeDebugNativeLibs
> Task :cts_provider:stripDebugDebugSymbols NO-SOURCE
> Task :api_cnx:compileDebugSources
> Task :settings:preBuild UP-TO-DATE
> Task :settings:preDebugBuild UP-TO-DATE
> Task :settings:compileDebugAidl NO-SOURCE
> Task :settings:compileDebugRenderscript
> Task :settings:generateDebugBuildConfig
> Task :cts_provider:mergeExtDexDebug
> Task :settings:generateDebugResValues
> Task :settings:generateDebugResources
> Task :settings:javaPreCompileDebug
> Task :settings:createDebugCompatibleScreenManifests
> Task :settings:extractDeepLinksDebug
> Task :settings:processDebugManifest
> Task :nist_sip:mergeDebugNativeLibs
> Task :nist_sip:stripDebugDebugSymbols NO-SOURCE
> Task :nist_sip:copyDebugJniLibsProjectOnly
> Task :cts_provider:mergeDexDebug
> Task :settings:mergeDebugShaders
> Task :settings:compileDebugShaders NO-SOURCE
> Task :settings:generateDebugAssets UP-TO-DATE
> Task :settings:mergeDebugAssets
> Task :settings:processDebugJavaRes NO-SOURCE
> Task :settings:mergeDebugResources
> Task :settings:processDebugResources


> Task :settings:compileDebugJavaWithJavac
注: /Users/xxx/dev/xxx/RCS/rcsjta/tools/settings/src/com/gsma/rcs/core/control/settings/UserprofileSettingsDisplay.java使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。


> Task :settings:compileDebugSources
> Task :settings:checkDebugDuplicateClasses
> Task :settings:dexBuilderDebug
> Task :settings:mergeDebugJavaResource
> Task :settings:mergeDebugJniLibFolders
> Task :cts_provider:mergeDebugJavaResource
> Task :cts_provider:packageDebug
> Task :cts_provider:assembleDebug
> Task :settings:validateSigningDebug
> Task :provisioning:preBuild UP-TO-DATE
> Task :provisioning:preDebugBuild UP-TO-DATE
> Task :provisioning:compileDebugAidl NO-SOURCE
> Task :provisioning:compileDebugRenderscript
> Task :provisioning:generateDebugBuildConfig
> Task :settings:mergeDebugNativeLibs
> Task :settings:stripDebugDebugSymbols NO-SOURCE
> Task :provisioning:generateDebugResValues
> Task :provisioning:generateDebugResources
> Task :provisioning:javaPreCompileDebug
> Task :provisioning:createDebugCompatibleScreenManifests
> Task :provisioning:extractDeepLinksDebug
> Task :provisioning:processDebugManifest
> Task :provisioning:mergeDebugShaders
> Task :provisioning:compileDebugShaders NO-SOURCE
> Task :provisioning:generateDebugAssets UP-TO-DATE
> Task :provisioning:mergeDebugAssets
> Task :provisioning:processDebugJavaRes NO-SOURCE
> Task :provisioning:mergeDebugResources
> Task :provisioning:processDebugResources
> Task :api_cnx:mergeDebugJavaResource
> Task :api_cnx:syncDebugLibJars
> Task :api_cnx:bundleDebugAar
> Task :api_cnx:assembleDebug
> Task :provisioning:compileDebugJavaWithJavac
> Task :provisioning:compileDebugSources
> Task :provisioning:checkDebugDuplicateClasses
> Task :provisioning:dexBuilderDebug
> Task :provisioning:mergeDebugJavaResource
> Task :nist_sip:bundleLibCompileToJarDebug


> Task :core:compileDebugJavaWithJavac
注: 某些输入文件使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
注: /Users/xxx/dev/xxx/RCS/rcsjta/core/src/com/gsma/rcs/core/ims/protocol/sip/SipMessage.java使用了未经检查或不安全的操作。
注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。


> Task :core:compileDebugSources
> Task :core:dexBuilderDebug
> Task :provisioning:mergeDebugJniLibFolders
> Task :provisioning:validateSigningDebug
> Task :nist_sip:copyDebugJniLibsProjectAndLocalJars
> Task :nist_sip:extractDebugAnnotations
> Task :nist_sip:mergeDebugGeneratedProguardFiles UP-TO-DATE
> Task :nist_sip:mergeDebugConsumerProguardFiles UP-TO-DATE
> Task :nist_sip:prepareLintJarForPublish UP-TO-DATE
> Task :provisioning:mergeDebugNativeLibs
> Task :provisioning:stripDebugDebugSymbols NO-SOURCE
> Task :nist_sip:compileDebugSources
> Task :mediaplayer:copyDebugJniLibsProjectAndLocalJars
> Task :mediaplayer:extractDebugAnnotations
> Task :mediaplayer:mergeDebugGeneratedProguardFiles UP-TO-DATE
> Task :mediaplayer:mergeDebugConsumerProguardFiles UP-TO-DATE
> Task :mediaplayer:prepareLintJarForPublish UP-TO-DATE
> Task :mediaplayer:compileDebugSources
> Task :extension:preBuild UP-TO-DATE
> Task :extension:preDebugBuild UP-TO-DATE
> Task :extension:compileDebugAidl NO-SOURCE
> Task :extension:compileDebugRenderscript
> Task :extension:generateDebugBuildConfig
> Task :nist_sip:mergeDebugJavaResource
> Task :nist_sip:syncDebugLibJars
> Task :nist_sip:bundleDebugAar
> Task :nist_sip:assembleDebug
> Task :extension:generateDebugResValues
> Task :extension:generateDebugResources
> Task :mediaplayer:mergeDebugJavaResource
> Task :mediaplayer:syncDebugLibJars
> Task :extension:javaPreCompileDebug
> Task :mediaplayer:bundleDebugAar
> Task :mediaplayer:assembleDebug
> Task :extension:createDebugCompatibleScreenManifests
> Task :extension:extractDeepLinksDebug
> Task :extension:processDebugManifest
> Task :extension:mergeDebugShaders
> Task :extension:compileDebugShaders NO-SOURCE
> Task :extension:generateDebugAssets UP-TO-DATE
> Task :extension:mergeDebugAssets
> Task :extension:processDebugJavaRes NO-SOURCE
> Task :extension:mergeDebugResources
> Task :extension:processDebugResources
> Task :extension:mergeDebugJavaResource
> Task :extension:compileDebugJavaWithJavac
> Task :extension:compileDebugSources
> Task :extension:checkDebugDuplicateClasses
> Task :extension:dexBuilderDebug
> Task :core:mergeDebugNativeLibs
> Task :core:stripDebugDebugSymbols NO-SOURCE
> Task :extension:mergeDebugJniLibFolders
> Task :extension:mergeExtDexDebug
> Task :extension:validateSigningDebug
> Task :bouncycastle:copyDebugJniLibsProjectAndLocalJars
> Task :bouncycastle:extractDebugAnnotations
> Task :bouncycastle:mergeDebugGeneratedProguardFiles UP-TO-DATE
> Task :bouncycastle:mergeDebugConsumerProguardFiles UP-TO-DATE
> Task :bouncycastle:prepareLintJarForPublish UP-TO-DATE
> Task :extension:mergeDebugNativeLibs
> Task :extension:stripDebugDebugSymbols NO-SOURCE
> Task :extension:mergeDexDebug
> Task :extension:packageDebug
> Task :extension:assembleDebug
> Task :bouncycastle:compileDebugSources
> Task :api:copyDebugJniLibsProjectAndLocalJars
> Task :api:extractDebugAnnotations
> Task :api:mergeDebugGeneratedProguardFiles UP-TO-DATE
> Task :api:mergeDebugConsumerProguardFiles UP-TO-DATE
> Task :api:prepareLintJarForPublish UP-TO-DATE
> Task :api:compileDebugSources
> Task :core:mergeDexDebug
> Task :core:packageDebug
> Task :core:assembleDebug
> Task :api:mergeDebugJavaResource
> Task :api:syncDebugLibJars
> Task :api:bundleDebugAar
> Task :api:assembleDebug
> Task :settings:mergeExtDexDebug
> Task :provisioning:mergeExtDexDebug
> Task :bouncycastle:mergeDebugJavaResource
> Task :bouncycastle:syncDebugLibJars
> Task :bouncycastle:bundleDebugAar
> Task :bouncycastle:assembleDebug
> Task :provisioning:mergeDexDebug
> Task :provisioning:packageDebug
> Task :provisioning:assembleDebug
> Task :settings:mergeDexDebug
> Task :settings:packageDebug
> Task :settings:assembleDebug


BUILD SUCCESSFUL in 22s
331 actionable tasks: 302 executed, 29 up-to-date


Build Analyzer results available
有多个报错:
之前也见过。但是当时没理会。
现在觉得,好像部分代码,或许是内部RCS的service启动有关系
比如上面的
> Task :api:compileDebugJavaWithJavac
注: /Users/xxx/dev/xxx/RCS/rcsjta/libs/api/src/main/java/com/gsma/services/rcs/extension/MultimediaMessagingSessionListenerImpl.java使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
就是api相关的。
所以:最好还是去彻底都解决掉。
至少规避潜在的其他原因导致的RCS service无法启动的问题。
所以去挨个解决:
【已解决】rcsjta项目编译出错:MultimediaMessagingSessionListenerImpl.java使用或覆盖了已过时的API
再去:
【已解决】rcsjta项目编译出错:DisplayGeoloc.java使用了未经检查或不安全的操作
不过此处由于开启了:
-Xlint:deprecation
导致此处编译报错非常多:
有100多个,太多了。也懒得一个个修复和确认了。
所以还是去掉上述参数:
build.gradle
allprojects {
    repositories {
//        google()
        maven { url 'https://maven.aliyun.com/repository/google' }
        maven { url 'https://maven.aliyun.com/repository/public' }
//        jcenter()
    }


//    gradle.projectsEvaluated {
//        tasks.withType(JavaCompile) {
//            options.compilerArgs << "-Xlint:unchecked"
//        }
//    }
}
重新编译看看
然后就可以了,回到之前,只有有限几个错误。
继续去解决:
【已解决】rcsjta项目编译出错:Task tts compileDebugJavaWithJavac 警告 deprecation Service中的onStart(Intent,int)已过时
对于Task tts compileDebugJavaWithJavac,解决了一个问题,后续还有其他4个,继续解决:
【已解决】rcsjta项目编译出错:TextToSpeech中的speak(String,int,HashMap<String,String>)已过时
继续:
【已解决】rcsjta项目编译出错:警告 deprecation PreferenceActivity中的addPreferencesFromResource(int)已过时
继续:
【未解决】rcsjta项目编译出错:警告deprecation PreferenceActivity中的getPreferenceScreen()已过时
然后上述preference问题,暂时没精力解决。
但是另外注意到了:
其中意思现在终于看懂了:
* finished
* :tts:compileDebugJavaWithJavac
* :RI:compileDebugJavaWithJavac
* :RI:stripDebugDebugSymbols
* :bouncycastle:compileDebugJavaWithJavac
* :nist_sip:compileDebugJavaWithJavac
* :settings:compileDebugJavaWithJavac
* :core:compileDebugJavaWithJavac
此处的几个task,都分别有各自的多个的错误和警告
  • tts
  • RI
  • bouncycastle
  • nist_sip
  • settings
  • core
而为了尽快顺利让RCS的service能运行起来,
本来打算只去关注和修复core中的问题的
但是后来回去:
单独看了看3个apk的编译过程
【已解决】编译rcsjta项目中的RCS的settings设置
【已解决】编译rcsjta项目中的RCS的RI参考实现
尤其是core:
【已解决】编译rcsjta项目中的RCS的core
发现其中依赖了其他部分:
  • api
  • bouncycastle
  • nist_sip
  • core
且其中也看到一些错误提示:
:bouncycastle:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
注: 某些输入文件使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
注: 某些输入文件使用了未经检查或不安全的操作。
注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。


:nist_sip:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
注: 某些输入文件使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
注: 某些输入文件使用了未经检查或不安全的操作。
注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。


:core:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
注: 某些输入文件使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
注: /Users/xxx/dev/xxx/RCS/rcsjta/core/src/com/gsma/rcs/core/ims/protocol/sip/SipMessage.java使用了未经检查或不安全的操作。
注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。


:core:transformClassesWithDexForDebug
warning: Ignoring InnerClasses attribute for an anonymous inner class
(jnamed$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(jnamed$2) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(jnamed$3) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.xbill.DNS.UDPClient$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.


:core:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
注: 某些输入文件使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
注: /Users/xxx/dev/xxx/RCS/rcsjta/core/src/com/gsma/rcs/core/ims/protocol/sip/SipMessage.java使用了未经检查或不安全的操作。
注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。


所以,为了core能够顺利的运行,最好要确保此处相关的错误,都被解决掉。
此处,如果不解决掉core依赖的其他问题
只解决core部分,估计也很可能会导致RCS service无法正常启动的。。。
所以感觉现在应该是去:
把上述所有的错误和警告(除了和界面相关的,比如前面的preference等),尤其是代码逻辑有关的,废弃的api相关的,都去解决掉,才能保证后续RCS service正常启动。
所以,现在挨个继续解决,目前能解决的问题吧。
【未解决】rcsjta项目编译出错:警告deprecation android.hardware中的Camera已过时

转载请注明:在路上 » 【未解决】Android Studio中gradle编译rcjsta项目多个使用或覆盖了已过时的API等报错

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
93 queries in 0.188 seconds, using 23.46MB memory