【问题标题】:How to remove the error package name and Gradle after clone from git从git克隆后如何删除错误包名称和Gradle
【发布时间】:2019-06-03 08:52:36
【问题描述】:

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

我遵循这样的包名称设置 Rename package in Android Studio

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

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

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

!-- 这是我的 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

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

【问题讨论】:

    标签: android git gradle clone


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-06-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多