首页 > 解决方案 > 如何将辅助项目导入 Android Studio

问题描述

我有一个正在 Aide 上构建的应用程序,但我对使用手机进行开发感到不舒服。有没有办法可以将它导入 Android Studio 而不会出错。

这是我的 build.gradle

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:1.+'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
    }
}

这是我的应用程序/build.gradle

apply plugin: 'com.android.application'

android {
    compileSdkVersion 25
    buildToolsVersion "25.0.0"

    defaultConfig {
        applicationId "com.newest.pro"
        minSdkVersion 21
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile 'cn.pedant.sweetalert:library:1.3'
    //api 'com.google.android.gms:play-services-ads:+'
    compile 'com.android.support:design:+'
    compile 'com.android.support:cardview-v7:+'
    compile 'com.android.support:appcompat-v7:+'
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.google.firebase:firebase-ads:9.0.1'
}
apply plugin: 'com.google.gms.google-services'
android.useAndroidX=true 
android.enableJetifier=true

如果需要其他信息来帮助我,请提示我,我会提供。

标签: javaandroidandroid-studiobuild.gradleaide-ide

解决方案


推荐阅读