我第一次来这里,而且我对编码非常陌生,所以请保持温和。我已经准备好编译已经开发的应用程序的签名版本,并且我遇到了一组非常奇怪的错误,这些错误根据我的具体情况而有所不同。
当我清理项目时,它会生成“签名APK”。当我查看文件夹时,那里什么都没有。如果我调试,构建一个签名的apk,或运行该应用程序,我会得到各种错误,因为无法找到凌空。
Information:Gradle tasks [:assembleDebug]
:preBuild UP-TO-DATE
:preDebugBuild UP-TO-DATE
:checkDebugManifest
:preReleaseBuild UP-TO-DATE
:volley:preBuild UP-TO-DATE
:volley:preReleaseBuild UP-TO-DATE
:volley:compileReleaseNdk UP-TO-DATE
:volley:compileLint
:volley:copyReleaseLint UP-TO-DATE
:volley:mergeReleaseProguardFiles UP-TO-DATE
:volley:packageReleaseRenderscript UP-TO-DATE
:volley:checkReleaseManifest
:volley:prepareReleaseDependencies
:volley:compileReleaseRenderscript UP-TO-DATE
:volley:generateReleaseResValues UP-TO-DATE
:volley:generateReleaseResources UP-TO-DATE
:volley:packageReleaseResources UP-TO-DATE
:volley:compileReleaseAidl UP-TO-DATE
:volley:generateReleaseBuildConfig UP-TO-DATE
:volley:generateReleaseAssets UP-TO-DATE
:volley:mergeReleaseAssets UP-TO-DATE
:volley:processReleaseManifest UP-TO-DATE
:volley:processReleaseResources UP-TO-DATE
:volley:generateReleaseSources UP-TO-DATE
:volley:compileReleaseJavaWithJavac UP-TO-DATE
:volley:processReleaseJavaRes UP-TO-DATE
:volley:transformResourcesWithMergeJavaResForRelease UP-TO-DATE
:volley:transformClassesAndResourcesWithSyncLibJarsForRelease UP-TO-DATE
:volley:mergeReleaseJniLibFolders UP-TO-DATE
:volley:transformNative_libsWithMergeJniLibsForRelease UP-TO-DATE
:volley:transformNative_libsWithSyncJniLibsForRelease UP-TO-DATE
:volley:bundleRelease UP-TO-DATE
:prepareComAndroidSupportAnimatedVectorDrawable2321Library UP-TO-DATE
:prepareComAndroidSupportAppcompatV72321Library UP-TO-DATE
:prepareComAndroidSupportDesign2321Library UP-TO-DATE
:prepareComAndroidSupportMediarouterV72300Library UP-TO-DATE
:prepareComAndroidSupportRecyclerviewV72321Library UP-TO-DATE
:prepareComAndroidSupportSupportV42321Library UP-TO-DATE
:prepareComAndroidSupportSupportVectorDrawable2321Library UP-TO-DATE
:prepareComAndroidVolleyVolleyUnspecifiedLibrary UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServices840Library UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesAds840Library UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesAnalytics840Library UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesAppindexing840Library UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesAppinvite840Library UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesAppstate840Library UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesAuth840Library UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesBase840Library UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesBasement840Library UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesCast840Library UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesDrive840Library UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesFitness840Library UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesGames840Library UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesGcm840Library UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesIdentity840Library UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesLocation840Library UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesMaps840Library UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesMeasurement840Library UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesNearby840Library UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesPanorama840Library UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesPlus840Library UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesSafetynet840Library UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesVision840Library UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesWallet840Library UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesWearable840Library UP-TO-DATE
:prepareDebugDependencies
:compileDebugAidl UP-TO-DATE
:compileDebugRenderscript UP-TO-DATE
:generateDebugBuildConfig UP-TO-DATE
:generateDebugAssets UP-TO-DATE
:mergeDebugAssets UP-TO-DATE
:generateDebugResValues UP-TO-DATE
:generateDebugResources UP-TO-DATE
:mergeDebugResources UP-TO-DATE
:processDebugManifest UP-TO-DATE
:processDebugResources UP-TO-DATE
:generateDebugSources UP-TO-DATE
:compileDebugJavaWithJavac
C:\Users\ZZZ\src\com\appname\util\StringRequestActivity.java
Error:(14, 32) error: package com.android.volley.error does not exist
Error:(15, 34) error: package com.android.volley.request does not exist
Error:(64, 3) error: cannot find symbol class StringRequest
Error:(64, 30) error: cannot find symbol class StringRequest
Error:(77, 32) error: cannot find symbol class VolleyError
Error:(96, 3) error: cannot find symbol class StringRequest
Error:(96, 30) error: cannot find symbol class StringRequest
Error:(111, 32) error: cannot find symbol class VolleyError
Error:(137, 3) error: cannot find symbol class StringRequest
Error:(137, 30) error: cannot find symbol class StringRequest
Error:(173, 32) error: cannot find symbol class VolleyError
Error:(192, 3) error: cannot find symbol class StringRequest
Error:(192, 30) error: cannot find symbol class StringRequest
Error:(209, 34) error: cannot find symbol class VolleyError
Error:(234, 3) error: cannot find symbol class StringRequest
Error:(234, 30) error: cannot find symbol class StringRequest
Error:(260, 32) error: cannot find symbol class VolleyError
C:\Users\ZZZ\src\com\appname\FirstIntent.java
Error:(11, 32) error: package com.android.volley.error does not exist
Error:(12, 34) error: package com.android.volley.request does not exist
Error:(177, 6) error: cannot find symbol class StringRequest
Error:(177, 33) error: cannot find symbol class StringRequest
Error:(205, 35) error: cannot find symbol class VolleyError
C:\Users\appname\ForgetPassword.java
Error:(8, 32) error: package com.android.volley.error does not exist
Error:(9, 34) error: package com.android.volley.request does not exist
Error:(94, 6) error: cannot find symbol class StringRequest
Error:(94, 33) error: cannot find symbol class StringRequest
Error:(117, 35) error: cannot find symbol class VolleyError
C:\Users\appname\FragmentB.java
Error:(13, 32) error: package com.android.volley.error does not exist
Error:(14, 34) error: package com.android.volley.request does not exist
Error:(62, 3) error: cannot find symbol class StringRequest
Error:(62, 30) error: cannot find symbol class StringRequest
Error:(126, 34) error: cannot find symbol class VolleyError
Error:(166, 6) error: cannot find symbol class StringRequest
Error:(166, 33) error: cannot find symbol class StringRequest
Error:(192, 35) error: cannot find symbol class VolleyError
Error:(225, 7) error: cannot find symbol class StringRequest
Error:(225, 34) error: cannot find symbol class StringRequest
Error:(252, 36) error: cannot find symbol class VolleyError
C:\Users\appname\FragmentB_Other.java
Error:(13, 32) error: package com.android.volley.error does not exist
Error:(14, 34) error: package com.android.volley.request does not exist
Error:(78, 3) error: cannot find symbol class StringRequest
Error:(78, 30) error: cannot find symbol class StringRequest
Error:(154, 34) error: cannot find symbol class VolleyError
C:\Users\appname\FragmentDiscoverMore.java
Error:(12, 32) error: package com.android.volley.error does not exist
Error:(13, 34) error: package com.android.volley.request does not exist
Error:(129, 6) error: cannot find symbol class StringRequest
Error:(129, 33) error: cannot find symbol class StringRequest
Error:(157, 35) error: cannot find symbol class VolleyError
C:\Users\appname\OtherUserProfile.java
Error:(13, 32) error: package com.android.volley.error does not exist
Error:(14, 34) error: package com.android.volley.request does not exist
Error:(174, 3) error: cannot find symbol class StringRequest
Error:(174, 30) error: cannot find symbol class StringRequest
Error:(250, 34) error: cannot find symbol class VolleyError
C:\Users\appname\OtherUserProfileActivity.java
Error:(13, 32) error: package com.android.volley.error does not exist
Error:(14, 34) error: package com.android.volley.request does not exist
Error:(99, 3) error: cannot find symbol class StringRequest
Error:(99, 30) error: cannot find symbol class StringRequest
Error:(171, 34) error: cannot find symbol class VolleyError
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Error:Execution failed for task ':compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
Information:BUILD FAILED
Information:Total time: 8.399 secs
Information:59 errors
Information:0 warnings
Information:See complete output in console
提前感谢您提供的任何帮助。
更新根据第一个回答,我删除了凌空文件,并且还按照说明删除了依赖项。该应用正确导入了排球,但是>我仍然遇到问题。注意,我还将我的JAVA_HOME更新为>正确的位置。相同的错误。
答案 0 :(得分:1)
将其文件夹包含为项目,请将其包含在应用程序的build.gradle中。它在jcenter上正式提供,这里是包含行
compile 'com.android.volley:volley:1.0.0'