标签: android-sdk-tools

在ADT插件更新后使用某种库的所有Android项目抛出ClassNotFoundException

我正在使用Eclipse.我正在面对这个问题在GOOGLE IO 2013之后我将我的ADT插件,Android SDK工具更新到版本22和Android SDK平台工具更新到版本17

以前工作过的所有项目都在此次更新后无缘无故地开始抛出ClassNotFoundException.我搜索了stackoverflow,但没有一个答案似乎解决了我的问题.

eclipse android adt android-sdk-tools

4
推荐指数
2
解决办法
1431
查看次数

Android SDK是否故意使用旧版本的ProGuard

我使用Android SDK Manager来更新所有软件包.目前(2014-03-05)的Android SDK工具是V22.6.我在C:\ Program Files(x86)\ Android\android-sdk\tools\proguard\lib中检查了proguard.jar,发现它的版本是4.7.ProGuard的最新版本是4.11.V4.7于2011年发布.SDK是否有充分的理由使用旧版本?我应该手动更新ProGuard吗?

我听说如果手动更新proguard.jar,通过Android SDK Manager更新SDK将覆盖它.任何澄清将不胜感激.

java android proguard android-sdk-tools

4
推荐指数
1
解决办法
667
查看次数

无法使用Android Studio启动新项目

我刚开始使用Linux Ubuntu,下载并可能设置Android Studio.

当我启动它时,它确实成功了,虽然这需要几个小时才能到来.但它现在给了我:

Your Android SDK is missing, out of date, or is missing templates. Please ensure you are using SDK version 22 or later. You can configure your SDK via Configure | Project Defaults | Project Structure | SDKs

我尝试这样做,在SDKs我添加了Android SDK.但是当我点击"确定"时,提示被解除但没有任何反应,也就是说,没有添加.我在SDKs下面尝试了"Android SDK"两项,因为Android SDK是空的.但是这一次,Apply按钮和OK按钮没有响应.当我看到命令行时,此错误正在显示.

[ 550663]  ERROR - llij.ide.plugins.PluginManager - Android Studio (Preview) 0.4.6  Build #AI-133.1028713 
[ 550663]  ERROR - llij.ide.plugins.PluginManager - JDK: 1.8.0_05 
[ 550663]  ERROR - llij.ide.plugins.PluginManager - VM: Java HotSpot(TM) 64-Bit Server VM
[ 550664]  ERROR …
Run Code Online (Sandbox Code Playgroud)

ubuntu android android-sdk-tools android-studio

4
推荐指数
1
解决办法
3990
查看次数

在SDK更新后,Cordova模拟不在Genymotion上运行

使用Genymotion版本2.2.2,Android SDK工具23(当前),安装虚拟框4.3和手机映像Nexus 4 - 安装android 4.4.2.

所以我使用SDK工具20(我猜)与eclipse.Genymotion当时表现得很完美.Cordova正在模仿Genymotion中的应用程序.然后我安装了android studio并将我的sdk工具更新为23.安装了选定的软件包.4.4也安装了.

现在Genymotion模拟器打开完美,但cordova没有在Genymotion中打开应用程序.相反,它正在为默认的SDK模拟器搜索ADT.

 Cordova emulate android
Run Code Online (Sandbox Code Playgroud)

这无法在Genymotion中打开应用程序.我还尝试调整Genymotion SDK设置.什么都没有帮助.

什么地方出了错??怎么解决?

android android-emulator android-sdk-tools cordova genymotion

4
推荐指数
1
解决办法
2613
查看次数

在android API级别23中不推荐使用SmsMessage.createFromPdu

我正在尝试使用以下代码阅读收到的短信,它在API级别23下工作,但在API级别23 createFromPdu方法已弃用.在谷歌文档中它有一个替代方法,但我如何使用它.

public class IncomingSms extends BroadcastReceiver {

// Get the object of SmsManager
final SmsManager sms = SmsManager.getDefault();

public void onReceive(Context context, Intent intent) {

    // Retrieves a map of extended data from the intent.
    final Bundle bundle = intent.getExtras();

    try {

        if (bundle != null) {

            final Object[] pdusObj = (Object[]) bundle.get("pdus");

            for (int i = 0; i < pdusObj.length; i++) {

                SmsMessage currentMessage = SmsMessage.createFromPdu((byte[]) pdusObj[i]);
                String phoneNumber = currentMessage.getDisplayOriginatingAddress();

                String senderNum = phoneNumber; …
Run Code Online (Sandbox Code Playgroud)

android android-sdk-tools smsmanager android-studio android-6.0-marshmallow

4
推荐指数
3
解决办法
1万
查看次数

Gradle 错误:找不到 Gradle DSL 方法:'executeWithoutThrowingTaskFailure()'

我最近将 android SDK 工具更新到 v23,现在当我打开我的项目时它无法编译,我收到以下消息:

Error:Gradle DSL method not found: 'executeWithoutThrowingTaskFailure()'

有人知道这里有什么问题吗?这是我的 app.gradle 代码:

buildscript {
    repositories {
        maven { url 'https://maven.fabric.io/public' }
    }

    dependencies {
        classpath 'io.fabric.tools:gradle:1.+'
    }
}

apply plugin: 'com.android.application'

apply plugin: 'io.fabric'
apply plugin: 'android-apt'
apply plugin: 'com.raizlabs.griddle'
apply plugin: 'com.neenbedankt.android-apt'

repositories {
    mavenCentral()
    maven { url 'https://maven.fabric.io/public' }
    maven { url "https://jitpack.io" }
}

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.1"

    defaultConfig {
        applicationId "com.myapp"
        minSdkVersion 10
        targetSdkVersion 23
        versionCode 2
        versionName "1.3.0"
    }
    buildTypes { …
Run Code Online (Sandbox Code Playgroud)

java android gradle android-sdk-tools android-studio

4
推荐指数
1
解决办法
4593
查看次数

不接受 CMake 3.6.3155560 的许可协议

我正在创建构建机器以自动生成 APK。我已经下载了最新的 android SDK 和 NDK 并安装了 gradle。但是当我这样做时,gradle assemble我收到此错误:

您尚未接受以下 SDK 组件的许可协议:[CMake 3.6.3155560]。

我已经安装/更新android-24,build-tools-24.0.1,extra-android-m2repository,platform-tools。但是在尝试时android update sdk --no-ui --all -t android-sdk-license,android-sdk-preview-license,出现错误:

错误:忽略未知包过滤器“android-sdk-license”

错误:忽略未知包过滤器“android-sdk-preview-license”

警告:包过滤器删除了所有包。没有什么可以安装的。请考虑尝试在没有包过滤器的情况下再次更新。

我有,yum install cmake但这也没有帮助。

请帮助伙计们。

android gradle android-ndk android-sdk-tools

4
推荐指数
1
解决办法
2398
查看次数

Android studio默认项目失败:错误:无法解决:com.android.support:support-v4:25.2.0

我真的只是第一次启动应用程序开发,当我创建一个新项目时,默认项目将无法构建.我曾尝试在Google和SO上查找这些错误并找到了一些,但他们的解决方案无效.鉴于我根本没有编辑过这些文件,我认为这是Android Studio未正确设置的问题,但无法解决.错误如下:

Error:Failed to resolve: com.android.support:support-v4:25.2.0
Install Repository and sync project
Open File
Show in Project Structure dialog

Error:(23, 24) Failed to resolve: com.android.support.test.espresso:espresso-core:2.2.2
Install Repository and sync project
Show in File
Show in Project Structure dialog

Error:(26, 13) Failed to resolve: com.android.support:appcompat-v7:26.+
Install Repository and sync project
Show in File
Show in Project Structure dialog
Run Code Online (Sandbox Code Playgroud)

它指向的build.gradle文件如下:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 26
    buildToolsVersion "26.0.0"
    defaultConfig {
        applicationId "com.extremecomputing.spotzz"
        minSdkVersion 17
        targetSdkVersion 26
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" …
Run Code Online (Sandbox Code Playgroud)

android android-sdk-tools android-studio

4
推荐指数
1
解决办法
9331
查看次数

无法定位 Android SDK

我已经安装了android studio和android sdk,后来我添加了flutter和flutter sdk。这是我的问题:当我跑步时

> flutter doctor
Run Code Online (Sandbox Code Playgroud)

表明

在此处输入图片说明 我没有安装 Android SDK。

android android-sdk-tools flutter flutter-test flutter-layout

4
推荐指数
3
解决办法
3万
查看次数

设备模拟器 5554 未授权。(安卓)

我遇到过类似的问题:[ emulator-5554 未经授权用于 adb 设备[1]

基本上,我正在尝试使用我的 Windows 10 在 Android 虚拟设备上进行一些颤振编程......尽管我认为这个问题不是颤振特有的。

启动虚拟设备后,我跑了

flutter doctor -v
Run Code Online (Sandbox Code Playgroud)

一切似乎都很好,除了

[!] Connected device
• Device emulator-5554 is not authorized.
  You might need to check your device for an authorization dialog.
Run Code Online (Sandbox Code Playgroud)

当我跑

flutter devices
Run Code Online (Sandbox Code Playgroud)

我明白了:

No devices detected.
Run 'flutter emulators' to list and start any available device emulators.
Run Code Online (Sandbox Code Playgroud)

当我跑

flutter emulators
Run Code Online (Sandbox Code Playgroud)

我得到

1 available emulator:
Nexus_5X_API_28
To run an emulator, run 'flutter emulators --launch <emulator id>'.
To create a new emulator, run 'flutter …
Run Code Online (Sandbox Code Playgroud)

android adb android-virtual-device android-sdk-tools flutter

4
推荐指数
3
解决办法
1万
查看次数