Android错误构建已签名的APK

前端之家收集整理的这篇文章主要介绍了Android错误构建已签名的APK前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
当我尝试构建签名的APK时,我收到此错误.我最近升级到API 23,然后生成APK:成功.我很困惑.要求帮助,并建议如何解决这个问题.这是错误
  1. FAILURE: Build Failed with an exception.
  2.  
  3. * What went wrong:
  4. Execution Failed for task ':app:validateExternalOverrideSigning'.
  5. > Keystore file /Users/me/Desktop/final apps/keystore.jks not
  6. found for signing config 'externalOverride'.
  7.  
  8. * Try:
  9. Run with --stacktrace option to get the stack trace. Run with --info or --
  10. debug option to get more log output.

和日志

  1. Information:Gradle tasks [:app:assembleRelease]
  2. :app:preBuild UP-TO-DATE
  3. :app:preReleaseBuild UP-TO-DATE
  4. :app:checkReleaseManifest
  5. :app:preDebugBuild UP-TO-DATE
  6. :app:prepareComAndroidSupportAppcompatV72311Library UP-TO-DATE
  7. :app:prepareComAndroidSupportSupportV42311Library UP-TO-DATE
  8. :app:prepareComGoogleAndroidGmsPlayServicesAppindexing810Library UP-TO-DATE
  9. :app:prepareComGoogleAndroidGmsPlayServicesBasement810Library UP-TO-DATE
  10. :app:prepareReleaseDependencies
  11. :app:compileReleaseAidl UP-TO-DATE
  12. :app:compileReleaseRenderscript UP-TO-DATE
  13. :app:generateReleaseBuildConfig UP-TO-DATE
  14. :app:generateReleaseAssets UP-TO-DATE
  15. :app:mergeReleaseAssets UP-TO-DATE
  16. :app:generateReleaseResValues UP-TO-DATE
  17. :app:generateReleaseResources UP-TO-DATE
  18. :app:mergeReleaseResources UP-TO-DATE
  19. :app:processReleaseManifest UP-TO-DATE
  20. :app:processReleaseResources UP-TO-DATE
  21. :app:generateReleaseSources UP-TO-DATE
  22. :app:compileReleaseJavaWithJavac
  23. Note: Some input files use or override a deprecated API.
  24. Note: Recompile with -Xlint:deprecation for details.
  25. :app:compileReleaseNdk UP-TO-DATE
  26. :app:compileReleaseSources
  27. :app:lintVitalRelease
  28. :app:transformClassesWithDexForRelease
  29. :app:mergeReleaseJniLibFolders
  30. :app:transformNative_libsWithMergeJniLibsForRelease
  31. :app:processReleaseJavaRes UP-TO-DATE
  32. :app:transformResourcesWithMergeJavaResForRelease
  33. :app:validateExternalOverrideSigning Failed
  34. Error:Execution Failed for task ':app:validateExternalOverrideSigning'.
  35. > Keystore file /Users/me/Desktop/final apps/keystore.jks not found for
  36. signing config 'externalOverride'.

这是我的毕业生

  1. apply plugin: 'com.android.application'
  2.  
  3. android {
  4. compileSdkVersion 23
  5. buildToolsVersion "23.0.2"
  6.  
  7.  
  8. defaultConfig {
  9. applicationId "com.waffles.vatsandbats"
  10. minSdkVersion 14
  11. targetSdkVersion 23
  12. }
  13.  
  14. buildTypes {
  15. release {
  16. minifyEnabled false
  17. proguardFiles getDefaultProguardFile('proguard-android.txt'),'proguard-rules.txt'
  18. }
  19. }
  20. }
  21.  
  22. dependencies {
  23.  
  24. compile files('libs/acra-4.7.0-javadoc.jar')
  25. compile files('libs/acra-4.7.0-sources.jar')
  26. compile files('libs/acra-4.7.0.jar')
  27. compile 'com.google.android.gms:play-services-appindexing:8.1.0'
  28. compile files('libs/activation.jar')
  29. compile files('libs/mail.jar')
  30. compile files('libs/additionnal.jar')
  31. compile 'com.android.support:support-v4:23.1.1'
  32. compile 'com.android.support:appcompat-v7:23.1.1'
  33.  
  34.  
  35. }

解决方法

我找到了解决方案.我把路径放在了keystore.jks文件中. 搜索我的计算机上的文件使用该路径和一切工作非常好!

猜你在找的Android相关文章