android - 从git克隆后如何删除错误包名称和Gradle

标签 android git gradle clone

我尝试从 git 克隆这个应用程序 https://github.com/SimCoderYoutube/TinderClone

我按照这样的包名称设置
Rename package in Android Studio

但即使我尝试相同的方式,它仍然显示错误

我是这样跟着包名的,但还是说名字不对。
但是我的屏幕上的包名是一样的。

gradle 错误也删除了有问题的部分,但它指示将其替换为“实现”
但我显然将“编译”更改为“实现”

!-- 这是我的 build.gradle(Module:app) --!


android {
    compileSdkVersion 28
    buildToolsVersion '28.0.3'
    defaultConfig {
        applicationId "com.simcoder.tinder"
        minSdkVersion 15
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })

    implementation 'com.android.support.constraint:constraint-layout:1.0.2'
    implementation 'com.android.support:design:28.0.0'
    implementation 'com.android.support:cardview-v7:28.0.0'
    implementation 'com.android.support:support-annotations:x.x.x'
    implementation 'com.google.firebase:firebase-core:11.0.4'
    implementation 'com.google.firebase:firebase-database:11.0.4'
    implementation 'com.google.firebase:firebase-auth:11.0.4'
    implementation 'com.google.firebase:firebase-storage:11.0.4'
    implementation 'com.github.bumptech.glide:glide:3.7.0'
    implementation 'com.lorentzos.swipecards:library:1.0.9'
    testImplementation 'junit:junit:4.12'
}







apply plugin: 'com.google.gms.google-services'


!-- 这是我的错误--!

错误:找不到与包名称“com.simcoder.tinder”匹配的客户端

警告:配置“编译”已过时,已替换为“实现”和“API”。
它将在 2018 年底被删除。有关更多信息,请参阅:http://d.android.com/r/tools/update-dependency-configurations.html
受影响的模块:app

如果您能告诉我如何解决它,我将不胜感激。

最佳答案

您必须在您的 firebase 帐户中创建一个新项目并在其中添加包名称,然后下载并替换“app”文件夹或任何模块名称中的 google-services.json。

关于android - 从git克隆后如何删除错误包名称和Gradle,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56423975/

相关文章:

java - Android Parcelable 对象不能在 Activity 之间正确传递

android - 如果我在 Qt 中为 Android 和 iOS 构建游戏,我可以像游戏中心一样在其中包含 Objective-C 工具包吗?

android - 我如何处理方向更改以使 fragment 无法加载?

android - 在 android studio gradle 文件中全局设置 lintOptions

gradle - Gradle:找不到方法includeBuild()作为参数

groovy - 封闭

android - 在 Android 上,是否总是调用 onStopJob?

git - 验证 Git 提交仅移动行

git - 插入模式 Gcommit Fugitive

git - 使用带有凭据的 Jenkinsfile 管道向存储库添加标签