gpt4 book ai didi

android - 在32位Ubuntu上使用Android-Studio

转载 作者:行者123 更新时间:2023-12-03 05:55:17 29 4
gpt4 key购买 nike

我需要在32位计算机上使用Android-Studio。我已经安装了Ubuntu,但是即使在手机上执行“Hello world”,我仍然遇到问题。这是我所做的:

  • 我用我的JDK位置
  • 更改了默认的JDK位置
    应用程序的gradle文件中的
  • 我将buildToolVersion从25更改为23.0.1
  • 我的应用程序gradle文件中的
  • 我将类路径'com.android.tools.build:gradle:2.3.1'更改为类路径'com.android.tools.build:gradle:2.2.1'
  • 我将gradle文件
  • 中的compileSdk,targetSdkVersion和minSdkVersion设置为23
  • 我将编译'com.android.support:appcompat-v7:26.+'更改为编译'com.android.support:appcompat-v7:23.+'

  • 现在我有这个问题:
    Error:(11) No resource identifier found for attribute 'roundIcon' in package 'android'

    并且如果我尝试从 list 中删除roundIcon属性,它将再次出现,因此我认为 list 是由其他东西生成的,该事物将属性roundIcon设置为API 23不支持。请有人帮助我在32上编码Android位机
    这是我在 list Application下的 list :
    <application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:roundIcon="@mipmap/ic_launcher_round"
    android:supportsRtl="true"
    android:theme="@style/AppTheme" >
    <activity android:name="com.example.root.gbu.MainActivity" >
    <intent-filter>
    <action android:name="android.intent.action.MAIN" />

    <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>
    </activity>
    </application>

    最佳答案

    在您的build.gradle文件中:

    android {
    compileSdkVersion 25
    buildToolsVersion "25.0.0"
    defaultConfig {
    minSdkVersion 23
    targetSdkVersion 25
    }
    }
    roundIcon属性需要SDK25。您需要在 build.gradle文件中设置该SDK。

    关于android - 在32位Ubuntu上使用Android-Studio,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45266012/

    29 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com