plugins { id 'com.android.application' id 'com.chaquo.python' } android { namespace 'com.chaquo.python.console' compileSdk = 34 defaultConfig { applicationId "com.chaquo.python.console" minSdk = 21 targetSdk = 34 versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" python { buildPython "D:\\IdearInstall\\python\\python.exe" pip { //options "--index-url", "https://pypi.tuna.tsinghua.edu.cn/simple" // //options "--extra-index-url", "https://pypi.tuna.tsinghua.edu.cn/simple" install "six" install "patch_ng" install "wheel" install "paddlepaddle" install "paddleocr" } } ndk { abiFilters "armeabi-v7a", "arm64-v8a", "x86", "x86_64" } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'androidx.appcompat:appcompat:1.1.0' implementation 'androidx.constraintlayout:constraintlayout:1.1.3' implementation 'androidx.lifecycle:lifecycle-extensions:2.1.0' testImplementation 'androidx.arch.core:core-testing:2.0.0' testImplementation 'junit:junit:4.12' androidTestImplementation 'androidx.test.ext:junit:1.1.1' androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0' }