zoukankan      html  css  js  c++  java
  • 网络记事本第二阶段第二天

    今天发现了一个报错的地方,在导用包的时候出现了一个引用类出错的现象

    找到build.gradle在buildTypes中添加respositories,设置

    repositories {
        maven { url "https://maven.google.com" }
    
    }
    在后面加一个就行,源码是这样的
    apply plugin: 'com.android.application'
    
    android {
        compileSdkVersion 28
        buildToolsVersion "29.0.3"
        defaultConfig {
            applicationId "com.example.notebook"
            minSdkVersion 15
            targetSdkVersion 28
            versionCode 1
            versionName "1.0"
            testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
        }
        buildTypes {
            release {
                minifyEnabled false
                proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
            }
            repositories {
                maven { url "https://maven.google.com" }
    
            }
        }
    }
    
    dependencies {
        implementation fileTree(dir: 'libs', include: ['*.jar'])
        implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
        testImplementation 'junit:junit:4.13'
        androidTestImplementation 'androidx.test.ext:junit:1.1.1'
        androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
        implementation 'com.google.android.material:material:1.1.0'
        implementation 'com.android.support:appcompat-v7:28.0.0'
        implementation 'com.android.support:appcompat-v7:28.0.0'
    
    }
  • 相关阅读:
    手撕 Goroutine 同步问题
    go基础知识面试备忘录
    专题3:链表类题型总结(go)
    python自动化开发-[第四天]-函数
    NOIP 飞扬的小鸟 题解
    集合 Properties 的 简单例子(Spring)
    Linux常用命令
    网络安全系列索引
    关于个人博客
    使用User Agent和代理IP隐藏身份
  • 原文地址:https://www.cnblogs.com/520520520zl/p/12984227.html
Copyright © 2011-2022 走看看