相关疑难解决方法(0)

生成签名apk时出错

我试图在google play上传我的apk并遇到错误消息:"你上传了一个可调试的APK.出于安全考虑,你需要先禁用调试才能在Google Play上发布.了解有关debuggable APK的更多信息."

然后我android:debuggable="false"在我的清单中写道并再次尝试.我遇到了同样的错误,所以我从我的模块中选择了构建版本来释放并再次生成一个apk,但是这产生了这个错误:

Error:Gradle: Execution failed for task ':app:lintVitalRelease'.
Lint found fatal errors while assembling a release target.
  To proceed, either fix the issues identified by lint, or modify your build script as follows:
  ...
  android {
      lintOptions {
          checkReleaseBuilds false
          // Or, if you prefer, you can continue to check for errors in release builds,
          // but continue the build even when errors are found:
          abortOnError false
      }
  }
  ...
Run Code Online (Sandbox Code Playgroud)

java android gradle

209
推荐指数
16
解决办法
14万
查看次数

如何修复“在 <manifest> 中发现的意外元素 <queries>”错误?

突然间,我在我的 Android 项目中遇到了这个构建错误:

unexpected element <queries> found in <manifest>
Run Code Online (Sandbox Code Playgroud)

我如何解决它?

android manifest android-manifest android-gradle-plugin flutter

142
推荐指数
6
解决办法
8万
查看次数

Generate signed apk failed with build\app\intermediates\flutter\profile\libs.jar(系统找不到指定的路径)

我在 android studio 4。Gradle 是 6.1.1。我从 android studio 创建了一个新的 flutter 项目。然后我将项目作为一个android项目打开。在Tools->Flutter中有这样一个选项。这导致了gradle同步。那是成功的。但是当我尝试用我的密钥生成签名的 apk 时。我明白了。错误

\path\to\my\project\build\app\intermediates\flutter\profile\libs.jar (The system cannot find the path specified)
Run Code Online (Sandbox Code Playgroud)

在给定位置没有配置文件目录。但是有 Debug 和 Release 目录,它们都包含 libs.jar。我搜索了所有其他网络以查找此问题。一无所获。

附加:我可以毫无问题地构建调试 apk。

android gradle android-studio android-gradle-plugin flutter

31
推荐指数
3
解决办法
1万
查看次数

错误:任务执行失败':app:lintVitalRelease'任何人都可以解决它吗?

为什么我收到此错误我尝试清理并重建应用程序并使应用程序发布为true并且我得到相同的错误

错误:任务':app:lintVitalRelease'的执行失败.java.lang.IllegalStateException:预期为BEGIN_ARRAY,但在第1行第1行为STRING路径$

    apply plugin: 'com.android.application'

android {
    compileSdkVersion 25
    buildToolsVersion '26.0.2'
    useLibrary 'org.apache.http.legacy'
    defaultConfig {
        applicationId "x.x.x"
        minSdkVersion 15
        targetSdkVersion 25
        versionCode 95
        versionName '5'

        multiDexEnabled true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    productFlavors {
    }

}
Run Code Online (Sandbox Code Playgroud)

java android

22
推荐指数
8
解决办法
2万
查看次数

颤振发布apk错误:任务':app:lintVitalRelease'的执行失败

我不能再发布我的应用程序了。我正在使用 AndroidStudio 4.0 和 flutter sdk 版本 1.17.5 。我上个月发布了两次我的应用程序,但现在我真的不知道错误的原因是什么。当我输入flutter build apk --release终端时,会发生这些错误:

        Running Gradle task 'assembleRelease'...


FAILURE: Build failed with an exception.



* What went wrong:

Execution failed for task ':app:lintVitalRelease'.

> Could not resolve all artifacts for configuration ':app:profileRuntimeClasspath'.

   > Failed to transform libs.jar to match attributes {artifactType=processed-jar, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}.

      > Execution failed for JetifyTransform: ....\build\app\intermediates\flutter\profile\libs.jar.

         > Failed to transform '....\build\app\intermediates\flutter\profile\libs.jar' using Jetifier. Reason: FileNotFoundException, message: ....\build\app\intermediates\flutter\profile\libs.jar (The system cannot find the path specified). (Run with --stacktrace …
Run Code Online (Sandbox Code Playgroud)

android release build gradle flutter

17
推荐指数
3
解决办法
1万
查看次数

预期 BEGIN_ARRAY 但在第 1 行第 2 列路径 $ 处为 BEGIN_OBJECT 生成 APK

我的项目在 AVD 上正确运行。但是当我尝试生成签名的 APK 时,gradle 出现此错误:

FAILURE: Build failed with an exception.

* What went wrong:
java.lang.IllegalStateException: Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2 path $
> Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2 path $

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more 
log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org
Run Code Online (Sandbox Code Playgroud)

我已经多次使用这个命令:gson.fromJson. …

gradle gson

13
推荐指数
2
解决办法
2141
查看次数