gpt4 book ai didi

android - 应用程序在启动时崩溃,没有错误消息

转载 作者:行者123 更新时间:2023-12-02 08:02:11 25 4
gpt4 key购买 nike

def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
def keystoreProperties=new Properties()
def keystorePropertiesFile=rootProject.file('key.properties')

if(keystorePropertiesFile.exists()){
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}

if (localPropertiesFile.exists()) {
localPropertiesFile.withReader('UTF-8') { reader ->
localProperties.load(reader)
}
}

def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null) {
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the
local.properties file.")
}

def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
flutterVersionCode = '1'
}

def flutterVersionName = localProperties.getProperty('flutter.versionName')

if (flutterVersionName == null) {
flutterVersionName = '1.0'
}

apply plugin: 'com.android.application'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
apply plugin: 'kotlin-android'
android {
compileSdkVersion 29

lintOptions {
disable 'InvalidPackage'
}

defaultConfig {
applicationId "com.name.nameapp"
minSdkVersion 16
targetSdkVersion 29
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
multiDexEnabled=true
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
signingConfigs{
release{
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile file(keystoreProperties['storeFile'])
storePassword keystoreProperties['storePassword']
}
}

buildTypes {
release {

minifyEnabled true
useProguard true

proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release

}
debug{
signingConfig signingConfigs.debug
}
}
}

flutter {
source '../..'
}

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"

implementation 'com.google.firebase:firebase-ads:18.2.0'

implementation 'com.google.firebase:firebase-analytics:17.0.1'
// Check for v11.4.2 or higher
implementation 'com.google.firebase:firebase-core:17.0.1'

// Add dependency
implementation 'com.crashlytics.sdk.android:crashlytics:2.10.1'
}
apply plugin: 'io.fabric'
apply plugin: 'com.google.gms.google-services'
  • 我试着把 flutter 清理干净,
  • 我在 list 中看到包裹是否相同。
  • 我确实构建了apk,并且做得很好。
  • 我看到主文件夹是否是 com.name.nameapp没关系。

  • 在我更新 flutter 之前,一切正常。我确定图书馆中存在一些冲突,但我怎样才能摆脱它呢?

    最佳答案

    在您的 android 文件夹中运行 gradlew clean 这应该会有所帮助

    关于android - 应用程序在启动时崩溃,没有错误消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60395571/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com