java - 如何将辅助项目导入 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
如果需要其他信息来帮助我,请提示我,我会提供。
解决方案
推荐阅读
- python - 如何舍入 pandas Float64Index?
- python - 按行计算稀疏矩阵中的 max() 值(数据帧)
- ios - 是否可以自定义 iOS Visionkit VNDocumentCameraViewController
- react-native - 安装 react-native-splash-screen 后 react-native android 应用程序崩溃
- python - Sybase Python ODBC
- c++ - 删除 cmake 中的预处理器定义
- php - 如何保护我网站上的重定向网址并阻止外部网站对它的不当使用?
- reactjs - 测试对 redux-saga 函数的调用
- html - 错误解析模板中的角度分页器错误
- python - 如何计算循环数据框中满足条件的值?