我试图在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) 突然间,我在我的 Android 项目中遇到了这个构建错误:
unexpected element <queries> found in <manifest>
Run Code Online (Sandbox Code Playgroud)
我如何解决它?
android manifest android-manifest android-gradle-plugin flutter
我在 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。
为什么我收到此错误我尝试清理并重建应用程序并使应用程序发布为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) 我不能再发布我的应用程序了。我正在使用 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) 我的项目在 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. …