我更新了我的Android Studio版本2.0。 但是我有一个问题,我不知道为什么? 重要的错误信息: 无法实例化应用程序com.android.tools.fd.runtime.BootstrapApplication:java.lang.IllegalStateException:java.lang.ClassNotFoundException:com.eallcn.rentagent.MyDebugEallApplication 我search了很长时间,但我没有find正确的答案,你可以看到链接 同时当我点击文件 – >项目结构它显示这个错误: libs中有没有什么问题? 当gradle构build程序时,libs没有为当前的程序完全加载。 Android Studio版本2.0有没有问题? 当我使用Android Studio 1.4.0来构build和运行程序时。 这对我来说可以! 但是当我使用Android Studio 2.0时,问题就出现了! 为什么? 请问你能帮帮我吗? 这里是详细的错误日志: 11-28 11:57:00.489 19890-19890 / com.eallcn.rentagent.debug E / AndroidRuntime:致命exception:主进程:com.eallcn.rentagent.debug,PID:19890 java.lang.RuntimeException:无法实例化应用程序com.android.tools.fd.runtime.BootstrapApplication:java.lang.IllegalStateException:java.lang.ClassNotFoundException:android.app.LoadedApk.makeApplication(LoadedApk.java:537)在android.app上的com.eallcn.rentagent.MyDebugEallApplication .ActivityThread.handleBindApplication(ActivityThread.java:4586)at android.app.ActivityThread.access $ 1800(ActivityThread.java:139) 在android.app.ActivityThread $ H.handleMessage(ActivityThread.java:1316) 在android.os.Handler.dispatchMessage(Handler.java:102) 在android.os.Looper.loop(Looper.java:136) 在android.app.ActivityThread.main(ActivityThread.java:5314) 在java.lang.reflect.Method.invokeNative(本地方法) 在java.lang.reflect.Method.invoke(Method.java:515) com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run(ZygoteInit.java:864)at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:680) 在dalvik.system.NativeStart.main(本地方法) 引起:java.lang.IllegalStateException:java.lang.ClassNotFoundException:com.eallcn.rentagent.MyDebugEallApplication at com.android.tools.fd.runtime.BootstrapApplication.createRealApplication(BootstrapApplication.java:167)at com.android.tools.fd.runtime.BootstrapApplication.attachBaseContext(BootstrapApplication.java:179)at android.app.Application.attach (Application.java:194) […]
我安装了Android Studio 0.1.9。 今天我得到并更新到版本0.2,当然我更新。 安装完成后,我重新启动了Android Studio,但是现在我收到了以下消息: 项目正在使用旧版本的Android Gradle插件。 支持的最低版本是0.5.0。 请更新依赖项的版本com.android.tools.build:gradle' 我怎么做? 我无法findandroid studio中的gradle插件的更新工具。
android sdk文件夹中有很多系统映像堆积在我的磁盘上。 我很less使用模拟器。 可能是6个月一次。 我的大部分发展都直接在设备上。 我想检查的是, 将删除系统映像(至less对于旧的APIS,即<22)影响发展? 另外,谷歌apis文件夹下面看到。 我应该保留它的所有版本或只是在最新的足够? 以上屏幕截图来自WinDirStat工具。 – https://windirstat.net
有没有一种方法来查找和replace整个项目中的一个单词的所有事件(不只是一个类,使用重构 – >重命名),还维护案例,在android studio或使用命令行脚本? 例如,供应商必须去商家,供应商 – >商家,供应商 – >商家。 我的老板要我改变供应商的所有情况与商人为一个正在进行的项目。 我已经做了大约一个小时,我知道我在浪费我的时间。 让我知道任何节省时间的build议。 提前致谢!
我使用Ubuntu GNOME 14.04,并且安装了Java 8(包括JDK和JRE)。 当我安装Android Studio时,一切正常,但出现一条消息说: 无法运行mksdcard SDK工具 我如何正确安装Android Studio,或者如何解决这个问题?
我有一个pipe理书籍(如播放列表)的应用程序。 我想要显示一个垂直RecyclerView的集合列表,并在每行内部显示一个水平RecyclerView的书籍列表。 当我将内部水平RecyclerView的layout_height设置为300dp时,它显示正确,但是当我将其设置为wrap_content时,它不显示任何内容。 我需要使用wrap_content,因为我希望能够以编程方式更改布局pipe理器以在垂直和水平显示之间切换。 你知道我在做什么错吗? 我的片段布局: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/white"> <com.twibit.ui.view.CustomSwipeToRefreshLayout android:id="@+id/swipe_container" android:layout_width="match_parent" android:layout_height="match_parent"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <android.support.v7.widget.RecyclerView android:id="@+id/shelf_collection_listview" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingTop="10dp"/> </LinearLayout> </com.twibit.ui.view.CustomSwipeToRefreshLayout> </LinearLayout> 集合元素布局: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="#FFF"> <!– Simple Header –> </RelativeLayout> <FrameLayout android:layout_width="match_parent" android:layout_height="wrap_content"> <TextView android:layout_width="match_parent" android:layout_height="match_parent" android:text="@string/empty_collection" android:id="@+id/empty_collection_tv" android:visibility="gone" android:gravity="center"/> <android.support.v7.widget.RecyclerView android:id="@+id/collection_book_listview" […]
在Android Studio中尝试编译我的项目时出现以下错误: Gradle: error: diamond operator is not supported in -source 1.6 在我find的所有项目偏好中,我有1.7个目标。 此外,在项目SDK的1.7 SDK下显示的path是正确的pathJava 1.7安装。 即使我在terminal运行java -version,它告诉我我在java 1.7上运行。 我曾尝试将JAVA_HOME envvariables设置为: /Library/Java/JavaVirtualMachines/jdk1.7.0_25.jdk/Contents/Home 错误不会消失。 我如何消除错误?
在Android Studio中导入现有项目时如何设置gradle home 在尝试导入时,我需要设置此path。
我需要帮助在Android Studio中为我的项目创build库,而不是自动生成的。 当我想创build一个文件夹,它给了我很多select,如AIDL,资产,JNI,Java,Java资源,Renderscripts和Res文件夹。 我select了Res,并添加了一个libs文件夹,但没有显示在左边的文件结构中。 谁能帮我? 我想添加一个JAR文件,但是我找不到要放入的库文件。
我需要添加一个图像的res/drawable文件夹… 当我selectnew > image asset ,它出来一个对话框selectAsset Type … 我如何添加一个图像到res/drawable文件夹?