فهرست منبع

镜像库修改

yinds 1 ماه پیش
والد
کامیت
f331787bed
3فایلهای تغییر یافته به همراه12 افزوده شده و 8 حذف شده
  1. 0 1
      app/src/main/res/layout/activity_splash.xml
  2. 10 5
      build.gradle
  3. 2 2
      config.gradle

+ 0 - 1
app/src/main/res/layout/activity_splash.xml

@@ -2,7 +2,6 @@
 <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
-    android:background="@mipmap/splash_png"
     xmlns:tools="http://schemas.android.com/tools">
 
     <LinearLayout

+ 10 - 5
build.gradle

@@ -2,12 +2,16 @@
 apply from: "config.gradle"
 buildscript {
     repositories {
+        maven {
+            url 'https://maven.aliyun.com/repository/public/'
+        }
         maven { url 'https://jitpack.io' }
         maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' }
         maven { url 'https://maven.aliyun.com/nexus/content/repositories/jcenter' }
         maven { url 'https://maven.aliyun.com/repository/google' }
+        // 如果你还需要其他官方仓库,可以继续添加
+        mavenCentral() // 或者 jcenter(),取决于你的需求
         google()
-        jcenter()
     }
     dependencies {
         classpath 'com.android.tools.build:gradle:7.1.1'
@@ -19,14 +23,15 @@ buildscript {
 
 allprojects {
     repositories {
-        google()
-        jcenter()
-        mavenCentral()
+        maven {
+            url 'https://maven.aliyun.com/repository/public/'
+        }
         maven { url 'https://jitpack.io' }
         maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' }
         maven { url 'https://maven.aliyun.com/nexus/content/repositories/jcenter' }
         maven { url 'https://maven.aliyun.com/repository/google' }
-    }
+        mavenCentral()
+        google()    }
 }
 
 task clean(type: Delete) {

+ 2 - 2
config.gradle

@@ -29,9 +29,9 @@ ext {
 
     //里面的key值有问题
     debug = [
-            "apiHost"      : '"https://greatadmin.dev.gztjy.top"',
+            "apiHost"      : '"https://greatadmin.dev.dazesoft.cn"',
             "apiName"      : '"serviceapi"',
-            "fileApiHost"      : '"https://fileupload.hw.hongweisoft.com"',
+            "fileApiHost"      : '"https://fileupload.dev.dazesoft.cn"',
             "fileApiName"      : '""',
             "prjectName" : '"测试"',