我无法安装Android开发工具.我克服了涉及GEF的一个错误.我现在有一个新错误.
缺少要求:Android开发工具0.9.6.v201002051504-24846(com.android.ide.eclipse.adt.feature.group 0.9.6.v201002051504-24846)需要'org.eclipse.wst.xml.ui 0.0.0'但它无法找到
我正在运行Kubuntu 9.10和Eclipse 3.5.我已设法安装Android DDMS.但是我一直在使用开发工具遇到障碍.我安装了Android SDK.
为了获得缺少的组件,我需要做什么?
我正在尝试在Android上创建一个MqttClient,在ADT上使用Android模拟器(Nexus7)(在Linux Fedora17上使用Eclipse 3.8.0.我发现这个问题得到了解答(Android MQTT无法创建客户端),但它无法解决我的问题问题.
我创建了一个活动,允许用户进入存储presistence文件的目录,但是没有办法避免捕获异常.我试过"/ mnt/sdcard /","/ mnt /","/ mnt/sdcard/tmp /"等.
我是否需要关注Eclipse项目中Android模拟器中的特定设置?是否有任何使用权限包含在应用程序中?
我查看了引用的回答问题中提到的各种mqtt资源,但我无法找到答案.
这是我的代码:
package com.storassa.android.mqttsample;
import org.eclipse.paho.client.mqttv3.MqttClient;
import org.eclipse.paho.client.mqttv3.MqttDefaultFilePersistence;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.widget.AutoCompleteTextView;
import android.widget.Button;
import android.widget.TextView;
public class MqttSample extends Activity {
Button okButton = null;
AutoCompleteTextView inputTextView = null;
TextView errorTextView = null;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_mqtt_sample);
okButton = (Button)findViewById(R.id.okButton);
inputTextView = (AutoCompleteTextView)findViewById(R.id.InputText);
errorTextView = (TextView)findViewById(R.id.errorText);
okButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View arg0) { …Run Code Online (Sandbox Code Playgroud) 我只知道以下属性,我想有一个完整的列表.
这指定了目标API级别(示例中的API级别17):
target=android-17
Run Code Online (Sandbox Code Playgroud)
这指定项目是否是库:
android.library=true
Run Code Online (Sandbox Code Playgroud)
这以Android方式指定包含的库(库项目的目录合并到包含项目的相应目录中):
android.library.reference.1=../relative/path/to/library/one
android.library.reference.2=../relative/path/to/library/two
...
android.library.reference.n=../relative/path/to/library/n
Run Code Online (Sandbox Code Playgroud)
这指定AndroidManifest.xml库项目的清单文件()是否合并到包含项目的清单文件中:
manifestmerger.enabled=true
Run Code Online (Sandbox Code Playgroud)
我看到在我的项目前三(Eclipse生成),发现从最后一个SDK工具-修订- SDK工具,修订20(2012年6月),这是很难找到.
官方网站/文档/ Android源中是否有完整的列表?
- 编辑2013/02/17 -
感谢android开发人员提醒我的proguard.config属性,在默认project.property文件中留下了评论.
这指定了ProGuard配置文件的路径:
proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
Run Code Online (Sandbox Code Playgroud)
有两个变量:${sdk.dir}和${user.home}.可以在ProGuard文档中找到更多信息.
相关文章:
最近,当我试图在我的设备上运行我的Android应用程序时,我必须在实际启动之前从Eclipse运行它几次.
我试图重新安装JRE,JDK和IDE,我试图切换工作区.我还让Eclipse为Java VM使用更多的RAM.
我的IDE,JRE,JDK,ADT和ADT插件都是最新的.
对此有任何建议非常感谢.
运行时没有命令输出:'am start -n com.example.abstab/com.example.abstab.ActivityMain -a android.intent.action.MAIN -c android.intent.category.LAUNCHER'on device HT15CV805781
异常堆栈跟踪:
com.android.ddmlib.ShellCommandUnresponsiveException
at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:408)
at com.android.ddmlib.Device.executeShellCommand(Device.java:453)
at com.android.ide.eclipse.adt.internal.launch.ActivityLaunchAction.doLaunchAction(ActivityLaunchAction.java:67)
at com.android.ide.eclipse.adt.internal.launch.ActivityLaunchAction.doLaunchAction(ActivityLaunchAction.java:109)
at com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.doLaunchAction(AndroidLaunchController.java:1277)
at com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.doLaunchAction(AndroidLaunchController.java:1289)
at com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.launchApp(AndroidLaunchController.java:1261)
at com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.simpleLaunch(AndroidLaunchController.java:906)
at com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.continueLaunch(AndroidLaunchController.java:748)
at com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.launch(AndroidLaunchController.java:640)
at com.android.ide.eclipse.adt.internal.launch.LaunchConfigDelegate.doLaunch(LaunchConfigDelegate.java:322)
at com.android.ide.eclipse.adt.internal.launch.LaunchConfigDelegate.launch(LaunchConfigDelegate.java:238)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:855)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:704)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1047)
at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1251)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
Run Code Online (Sandbox Code Playgroud)
会话数据:
eclipse.buildId=M20120914-1800
java.version=1.7.0_15
java.vendor=Oracle Corporation
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments: -keyring /Users/myname/.eclipse_keyring -showlocation
Command-line arguments: -os macosx -ws cocoa -arch x86_64 -keyring /Users/myname/.eclipse_keyring -showlocation
Run Code Online (Sandbox Code Playgroud) 有谁知道如何解决这个错误?我无法查看任务列表,并且任务列表窗口出现如上/下所述的错误。
Could not create the view: org.eclipse.mylyn.tasks.ui.views.tasks
Run Code Online (Sandbox Code Playgroud) 正如标题所说,当我尝试禁用相机时,Android会忽略它,一旦我尝试使用某些相机功能,它们就能完美无缺地工作.

并检查设备中的应用:

任何提示在Android模拟器中执行完全禁用相机?
谢谢!!编辑:仍然没有线索.我试过Windows和Mac.两者都发生了同样的事情.
我刚刚启动android dev并且在从sdk管理器安装所有过去的API后首次启动adt(低至2.2 froyo)并且我收到错误告诉我更新,但是当它检查更新时它说不新的更新.
此外,当我尝试从https://dl-ssl.google.com/android/eclipse/手动安装新adt时,我遇到依赖冲突错误.
此外,当我从谷歌下载一个新的adt似乎只是正常的朱诺日食没有设置adroid的东西,没有adt启动画面或任何东西......
如果我不能使用IDE,我无法继续学习android,因为它需要更新到它不会安装的adt版本.
我试过手动下载adt v23并发生同样的错误,我甚至删除了eclipse目录插件中所有与adt 22相关的东西,但它仍以某种方式发生
我已经完成了这个问题,但没有帮助. 使用Android开发工具更新eclipse 23
启动eclipse时显示以下错误.

当我尝试检查更新时 - 它什么也没做.
然后我试了一下
帮助 - >安装新软件 - >" https://dl-ssl.google.com/android/eclipse/ "
它显示以下错误
Cannot complete the install because of a conflicting dependency.
Software being installed: Android Native Development Tools 23.0.1.1256982 (com.android.ide.eclipse.ndk.feature.feature.group 23.0.1.1256982)
Software currently installed: Android Native Development Tools 22.6.3.v201404151837-1123206 (com.android.ide.eclipse.ndk.feature.group 22.6.3.v201404151837-1123206)
Only one of the following can be installed at once:
ADT CDT Integration 23.0.1.1256982 (com.android.ide.eclipse.ndk 23.0.1.1256982)
ADT CDT Integration 22.6.3.v201404151837-1123206 (com.android.ide.eclipse.ndk 22.6.3.v201404151837-1123206)
Cannot satisfy dependency:
From: Android Native Development Tools 23.0.1.1256982 (com.android.ide.eclipse.ndk.feature.feature.group 23.0.1.1256982)
To: com.android.ide.eclipse.ndk …Run Code Online (Sandbox Code Playgroud) **从Windows 8中提取adt-bundle-windows-x86_64-20140702时发生此错误
(! D:\Bela\Work\adt-bundle-windows-x86_64-20140702.zip: Cannot create folder adt-bundle-windows-x86_64-20140702\sdk\tools\lib\monitor-x86\features\com.android.ide.eclipse.hierarchyviewer.feature_23.0.2.1259578\META-INF\maven\adt.group\com.android.ide.eclipse.hierarchyviewer.feature
The filename or extension is too long.
! D:\Bela\Work\adt-bundle-windows-x86_64-20140702.zip: Cannot create adt-bundle-windows-x86_64-20140702\sdk\tools\lib\monitor-x86\features\com.android.ide.eclipse.hierarchyviewer.feature_23.0.2.1259578\META-INF\maven\adt.group\com.android.ide.eclipse.hierarchyviewer.feature\pom.xml
Total path and file name length must not exceed 260 characters
The system cannot find the path specified.
! D:\Bela\Work\adt-bundle-windows-x86_64-20140702.zip: Cannot create adt-bundle-windows-x86_64-20140702\sdk\tools\lib\monitor-x86\features\com.android.ide.eclipse.hierarchyviewer.feature_23.0.2.1259578\META-INF\maven\adt.group\com.android.ide.eclipse.hierarchyviewer.feature\pom.properties
Total path and file name length must not exceed 260 characters
The system cannot find the path specified.)
Run Code Online (Sandbox Code Playgroud)
我怎样才能解决这个问题?
Google最近推出了另一种名为ConstraintLayout的布局.但是,我几乎没有一些问题仍然令人困惑.
我回顾与谷歌IO'16此部分相关的相关谈话,得到了谅解,这将是非常有帮助的开发人员创建平UI,性能会比任何其他更好的布局.
问题:
1.在哪种情况下,我们应该使用约束布局?
2.引入ContraintLayout是否意味着我们不应再使用LinearLayout,RelativeLayout..etc?
3.使用ContraintLayout的有效方法是什么?