标签: adt

打开XML文件时,我看不到图形布局

它显示一个空白屏幕.然后我必须单击蓝色/灰色星形图标并选择App theme,然后才会在调色板中显示元素.然后我必须将一个元素从调色板拖到空白屏幕上然后放下它.然后会出现图形布局.

它曾经很好地工作,直到我开始玩主题和ActionbarSherlock.

我尝试在所有Android和XML设置上恢复默认值,但它没有用.

有没有人知道如何修复它,以便在打开布局XML文件时显示XML图形编辑器?

(我正在使用的xml不是空白.)

eclipse android adt eclipse-adt

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

sdk经理没有加载但是eclipse已设置,其他一切都很好

我最近格式化我的PC,现在当我尝试从Android开发者网站安装ADT Bundle时,我无法打开SDK Manager.exe它只是打开一个空白的命令提示符并立即关闭.此外,当我尝试从eclipse启动SDK Managr时,它会显示"启动Android SDK Manager",显示进度条(移动),而不是"Initialize ... SDK Manager将轻松启动",但没有任何事情发生.

有人知道可能是什么问题吗?我从昨天开始尝试的事情,我没有希望.

谢谢你提前:)

eclipse sdk android bundle adt

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

为什么Eclipse会告诉我LinearLayout没有属性"margin"?

我尝试构建我的android项目时遇到错误:

在'android'包中找不到属性'margin'的资源标识符

它引用这种布局作为罪魁祸首.但我发现它没有任何问题.

任何想法为什么Eclipse会认为这些视图上没有保证金有利润?

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_margin="5dp"
    android:background="@color/feedstory_background_color"
    android:margin="5dp"
    android:orientation="vertical"
    android:padding="5dp" >

    <RelativeLayout
        android:id="@+id/feed_profile_bar"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginBottom="5dp" >

        <ImageButton
            android:id="@+id/feed_profileImage"
            android:layout_width="60dp"
            android:layout_height="60dp"
            android:layout_alignParentLeft="true"
            android:layout_margin="0dp"
            android:background="@color/black_bg"
            android:maxHeight="60dp"
            android:maxWidth="60dp"
            android:padding="1dp"
            android:scaleType="centerInside"
            android:src="@drawable/feed_blank_profile_picture" />

        <LinearLayout
            android:id="@+id/profile_texts"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginBottom="5dp"
            android:layout_marginLeft="5dp"
            android:layout_toRightOf="@id/feed_profileImage"
            android:orientation="vertical" >

            <TextView
                android:id="@+id/profile_name_text"
                style="@style/feed_profile_name"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="@string/feed_profile_name" >
            </TextView>

            <TextView
                android:id="@+id/profile_location_text"
                style="@style/feed_profile_location"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="@string/feed_profile_location" >
            </TextView>

            <TextView
                android:id="@+id/profile_time_text"
                style="@style/feed_profile_time"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="@string/feed_profile_time" >
            </TextView>
        </LinearLayout>

        <LinearLayout
            android:id="@+id/profile_texts"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentRight="true"
            android:orientation="vertical" >

            <Button
                android:id="@+id/fan_button"
                style="@style/feed_button_text" …
Run Code Online (Sandbox Code Playgroud)

android adt android-layout

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

如何在eclipse android插件中禁用标题栏图形布局预览?

我知道您可以通过添加来禁用活动的标签

android:theme="@android:style/Theme.NoTitleBar"
Run Code Online (Sandbox Code Playgroud)

在AndroidManifest.xml中,但即使我这样做,布局xml文件的图形布局选项卡仍然显示标题栏,我认为应该有一种方法来禁用eclipse UI中的标题栏但找不到它.有没有人发现它在哪里?

eclipse android adt

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

eclipse中的感叹号是什么意思?安卓项目

我只是对 ADT 插件做了一些更新,然后我的项目旁边出现了一个感叹号。我检查了构建路径,发现 android 依赖项有问题: 在此输入图像描述

我应该怎么办 ?

这是另一张图片: 在此输入图像描述

eclipse android adt

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

将所有设置从 Eclipse 导入到 Android Studio

Google 宣布不再积极开发 Eclipse 的 ADT 插件。

如果您是一名新的 Android 开发人员,您应该考虑从 Android Studio 开始,因为 Eclipse 的 ADT 插件不再处于积极开发阶段。

我有我自己的格式化程序,我对原始版本的 android 格式化程序稍作修改,但找不到导入它的方法。

清理 - 自定义清理。

定制外观。 :Eclipse中,Studio和Eclipse的主题。还是不够接近。

Eclipse 与 Android Studio

  • 如何将Preferences > Java > Code Style > *4Eclipse下的所有设置导入到 Android Studio。?

  • 映射所有快捷方式及其功能

eclipse android adt android-studio

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

错误:“c”的存储大小未知

当我尝试创建名为“struct car”的结构的变量“c”时,出现“错误:‘c’的存储大小未知”

这是代码:

测试文件

#ifndef TESTE_H_INCLUDED
#define TESTE_H_INCLUDED

typedef struct car Car;

#endif // TESTE_H_INCLUDED 
Run Code Online (Sandbox Code Playgroud)

测试程序

#include <stdio.h>
#include <stdlib.h>
#include "teste.h"

struct car{
    char name[20];
    char model[20];

}; 
Run Code Online (Sandbox Code Playgroud)

主程序

#include <stdio.h>
#include <stdlib.h>
#include "teste.h"
int main()
{
    Car c;
    return 0;
} 
Run Code Online (Sandbox Code Playgroud)

我不明白为什么我会收到这个错误...我敢打赌这是愚蠢的事情...有人可以帮助我吗?

c struct adt

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

main.xml:java.lang.NullPointerException Android Eclipse错误

所以我刚刚为eclipse安装了Android SDK和ADT插件,遇到了问题.

当我转到main.xml中的图形布局时,没有显示布局.相反,我只是得到这个错误

    $java.lang.NullPointerException
at sun.awt.FontConfiguration.getInitELC(Unknown Source)
at sun.awt.FontConfiguration.initFontConfig(Unknown Source)
at sun.awt.FontConfiguration.<init>(Unknown Source)
at sun.awt.windows.WFontConfiguration.<init>(Unknown Source)
at sun.awt.Win32GraphicsEnvironment.createFontConfiguration(Unknown Source)
at sun.java2d.SunGraphicsEnvironment$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.java2d.SunGraphicsEnvironment.<init>(Unknown Source)
at sun.awt.Win32GraphicsEnvironment.<init>(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(Unknown Source)
at sun.font.FontDesignMetrics.getDefaultFrc(Unknown Source)
at sun.font.FontDesignMetrics.getMetrics(Unknown Source)
at sun.awt.SunToolkit.getFontMetrics(Unknown Source)
at sun.awt.windows.WToolkit.getFontMetrics(Unknown Source)
at android.graphics.Paint_Delegate.updateFontObject(Paint_Delegate.java:1062)
at android.graphics.Paint_Delegate.reset(Paint_Delegate.java:1039)
at android.graphics.Paint_Delegate.<init>(Paint_Delegate.java:991)
at android.graphics.Paint_Delegate.native_init(Paint_Delegate.java:614)
at android.graphics.Paint.native_init(Paint.java)
at android.graphics.Paint.<init>(Paint.java:194)
at android.graphics.Paint.<init>(Paint.java:184)
at android.view.ViewGroup.<init>(ViewGroup.java:278) …
Run Code Online (Sandbox Code Playgroud)

eclipse sdk android adt

2
推荐指数
1
解决办法
6176
查看次数

将非Android项目添加到Android项目

我在Eclipse中有三个项目:Base,Server和AndroidClient.Base和Server是Java 1.7项目,而AndroidClient显然是一个android项目.基础项目具有在服务器和Android客户端之间共享的类和文件.

据我所知,Android并没有使用所有普通的Java类,并且有一些关于Dalvik与JVM的不同之处,你必须单独编译它们.假设我小心不使用android在基础项目中不支持的任何java类,有没有办法以简单的方式将基础项目作为库包含到android客户端?

java eclipse android adt

2
推荐指数
1
解决办法
151
查看次数

使用Galaxy Nexus进行Eclipse调试

我不确定我做错了什么但是当我设置我的Nexus以使用eclipse进行调试时我在控制台中收到错误说

[2011-12-27 21:48:31 - DeviceMonitor]无法开始监控0146BF5417006010

然后我adb通过Android平台工具/ adb.exe 运行设备,我的设备显示为"离线".

我尝试过以下方法:

  1. 删除所有驱动程序,重新安装设备断开连接.
  2. USB调试已开启.
  3. 连接设备时重新安装驱动器
  4. 在设备管理器中回滚驱动程序.

在旁注上我确实以前在我的Droid和Droid 3上工作过

任何帮助,将不胜感激.

eclipse android adt adb

2
推荐指数
1
解决办法
7426
查看次数

标签 统计

adt ×10

android ×9

eclipse ×8

sdk ×2

adb ×1

android-layout ×1

android-studio ×1

bundle ×1

c ×1

eclipse-adt ×1

java ×1

struct ×1