晕死,搞这个东西搞了一天 记录一下逝去的时间。

最最最主要的问题就是:里面的包依赖,SDK互相对应等

解决:首先决定自己要使用SDK版本

 

 

apply plugin: 'com.android.application'android {    compileSdkVersion 28//这个    buildToolsVersion '28.0.1' //这个    defaultConfig {        applicationId "com.example.bluetoothassist"        minSdkVersion 16        targetSdkVersion 28//这个        compileOptions {            sourceCompatibility JavaVersion.VERSION_1_7            targetCompatibility JavaVersion.VERSION_1_7        }    }    buildTypes {        release {            minifyEnabled false            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'        }    }}dependencies {    compile 'com.android.support:cardview-v7:28.+'//这个    implementation 'com.android.support:support-v4:28.0.0'//这个    implementation 'com.android.support:support-v13:28.0.0'//这个    implementation 'com.android.support:appcompat-v7:28.0.0'//这个    implementation 'com.makeramen:roundedimageview:2.3.0'//这个}

 

dependencies 里面的那些依赖如果提示没有的话在下面地方进行查找添加

 

以上标记这个的弄一样的版本是最好的

可以在你的Android Studio这个目录看你拥有的

classpath

// Top-level build file where you can add configuration options common to all sub-projects/modules.buildscript {    repositories {        google()        jcenter()            }    dependencies {        classpath 'com.android.tools.build:gradle:3.3.2'//跟你目录上门有的要选择一个保持一致        // NOTE: Do not place your application dependencies here; they belong        // in the individual module build.gradle files    }}allprojects {    repositories {        google()        jcenter()        //maven { url "https://maven.google.com"}        //maven { url "https://dl.google.com/dl/android/maven2/"}    }}task clean(type: Delete) {    delete rootProject.buildDir}

这是几个最重要的点 其他还有有的时候包没找到依然通过上面的那个寻找进行查找添加,

进行真机调试时解析包错误

更多相关文章

  1. Android单元测试 - 如何开始?
  2. android进行录音功能并保存播放
  3. Android黑盒自动化测试框架Robotium
  4. Android性能优化——合理进行内存管理
  5. 用ARM DS-5进行android linux开发
  6. Android(安卓)获取麦克风音量
  7. android 文本框输入法控制
  8. android service 学习(上)
  9. Android(安卓)获取麦克风音量

随机推荐

  1. 《Android面试宝典》学习笔记(第一章:andro
  2. android中Button背景渐变效果和点击效果
  3. Android程序加载动态库报错:UnsatisfiedLi
  4. Android:Umeng(友盟)消息推送(二)
  5. 时间获取以及时间格式化
  6. Android(安卓)设置EditText光标Curso颜色
  7. 疯狂Android讲义
  8. android下 抓包
  9. android中的ellipsize
  10. [置顶] Android(安卓)使用开源库加载网络