Settings | Sign in | Sign up

There are currently 50 posts.

Android Studio 3.5.3下载地址

Floor 11 巨大八爪鱼 8/18/25 15:23
Floor 12 巨大八爪鱼 8/18/25 16:00
解决Android studio 3.5.3出现Cause: unable to find valid certification path to requested target 报错的问题

修改根目录(注意是根目录!!!不是app工程下面)下的build.gradle,整个文件替换成如下内容:

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {

    repositories {

        maven { url 'http://maven.aliyun.com/nexus/content/repositories/google' }

        maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter'}

    }

    dependencies {

        classpath 'com.android.tools.build:gradle:3.5.3'


        // NOTE: Do not place your application dependencies here; they belong

        // in the individual module build.gradle files

    }

}

allprojects {

    repositories {

//    google()

//    jcenter()

        maven { url 'http://maven.aliyun.com/nexus/content/repositories/google' }

        maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter'}

    }

}


然后就同步成功了。

巨大八爪鱼: 参考资料:https://www.jb51.net/article/182527.htm

classpath 'com.android.tools.build:gradle:3.6.1'

这个classpath必须要根据android studio版本来设置。

Floor 13 巨大八爪鱼 8/18/25 16:03

gradle同步成功后,就可以进入design view了。

Floor 14 巨大八爪鱼 8/18/25 16:04

我选择的是Consolas 12号字体。

Floor 15 巨大八爪鱼 8/18/25 16:05
Floor 16 巨大八爪鱼 8/18/25 16:09
Floor 17 巨大八爪鱼 8/18/25 16:10
Floor 18 巨大八爪鱼 8/18/25 16:12
Floor 19 巨大八爪鱼 8/18/25 16:16
Floor 20 巨大八爪鱼 8/18/25 16:38

Build->Make Project失败:

AAPT: aapt2.exe E 08-18 16:31:50  2092  5656 LoadedArsc.cpp:112] RES_TABLE_TYPE_TYPE entry offsets overlap actual entry data.

aapt2.exe E 08-18 16:31:50  2092  5656 ApkAssets.cpp:157] Failed to load 'resources.arsc' in APK 'C:\Documents and Settings\Administrator\AppData\Local\Android\Sdk\platforms\android-36\android.jar'.

error: failed to load include path C:\Documents and Settings\Administrator\AppData\Local\Android\Sdk\platforms\android-36\android.jar.


解决办法:打开Gradle Scripts下面的build.gradle (Module: app)。

compileSdkVersion改成28

buildToolsVersion改成"28.0.3"    

targetSdkVersion改成28

然后Sync一下再Build->Make Project,就成功了。

可以在F:\Projects\AndroidStudioProjects\MyApplication\app\build\outputs\apk\debug下成功生成app-debug.apk。


如果报下面的错误,点击Install missing SDK package(s)链接接受一下里面的协议就行了。

ERROR: Failed to install the following Android SDK packages as some licences have not been accepted.

   platforms;android-15 Android SDK Platform 15

   build-tools;28.0.3 Android SDK Build-Tools 28.0.3

To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager.

Alternatively, to transfer the license agreements from one workstation to another, see http://d.android.com/r/studio-ui/export-licenses.html


Using Android SDK: C:\Documents and Settings\Administrator\AppData\Local\Android\Sdk

Install missing SDK package(s)

Content converter:

Reply the post
Content:
User: You are currently anonymous.
Captcha:
Unclear? Try another one.