今天从android developer上下了一个Swipe View的Demo,打算学习下tab组件的使用,在编译Demo的过程中出现了一系列的问题。
首先,导入工程出现了invalid project description的问题,大怒,这种狗屁问题以前也遇到过还以为是android sdk版本的问题,之前没有在意,现在觉得非解决不可。搜索网上,最终发现是我把Demo工程放到了eclipse的工作集目录下造成的,真是汗,eclipse在导入工程的时候会在工作集目录下新建一个同名的工程目录,结果发现已经有这个目录了就报错,非得把要导入的工程放到别处才行。
再次,发现Demo工程中使用的是什么google api(android 4.4),而不是我自己的android sdk,于是去掉google api(android 4.4),并在properties->android->project build target中选中自己的android sdk,但是发现自己的android.jar并没有在项目中出现,于是android tools->fix project properties后才出现(如果不行,记得看下project.properties文件下target对不对,改成自己的版本)。
最后,编译好了,但是只要运行就报unable to instantiate activity componentinfo的问题,大概意思就是说apk中找不到对应的启动Activity类,网上都是一些因为androidmanifest.xml中包写错了造成找不到类的,但是Demo工程中androidmanifest.xml的配置的确没有任何错误。花了很大力气,最终发现是order and export中android-support-v4.jar的顺序问题,把它向上移到android包的前面就行了。具体原因不清楚,以后有机会再弄明白吧。
相关推荐
FAILED: SemanticException org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient 通过控制台的...
1)第一种不是常驻型广播,也就是说广播跟随注册他的Activity的生命周期。 2)第二种是常驻型,也就是说当应用程序关闭后,如果有信息广播来,程序也会被系统调用自动运行。
SSH登录无实例化例子 SSH登录无实例化例子
WebService大讲堂之Axis2,多个实例,非常全的文档,从新手入门开始到复杂的实例
OpenWeatherMap-Android-Library You need an API Key to use the OpenWeatherMap API. Head on over to their website if you don't already have one. Download Step 1. Add the JitPack repository to your root...
ar.com.tadp.xml.rinzo_0.9.0.zip eclipse xml 插件
dpoll是顶级STEEM区块链上的去中心化投票应用程序。 最初创建于 安装 $ python3 -m venv dpoll-env $ tmp source dpoll-env/bin/activate $ git clone https://github.com/emre/dpoll.xyz.git $ cd dpoll.xyz $ pip...
Unity3D教程:Prefabs与Instantiate1
学习使用Prefabs和instantiate使用方法!
本文实例为大家分享了Unity中Instantiate实例化物体卡顿问题的解决方法,供大家参考,具体内容如下 一、前言 当在执行多次Instantiate实例化物体时,会卡顿严重甚至在移动端会导致程序崩溃 因为Instantiate会产生...
Implement StickyHeaderHandler in your Presenter/Adapter/Activity or whatever class has access to your RecyclerView adapter dataset Make sure the parent of the RecyclerView is a FrameLayout or ...
To crop faces automatically, you have to instantiate an object of FaceCropper class in that way: FaceCropper mFaceCropper = new FaceCropper(); mFaceCropper.getCroppedImage(source); getCroppedImage ...
android-viewpager-transformers A collection of view pager transformers. This repos is fork from daimajia but i uploaded it to maven central and added some more javadoc. Download dependencies { ...
Instantiate one shared SmashQueue object (e.g. in your Application class): mSmashQueue = Smash.buildSmashQueue(getApplicationContext()); To request content of server as String do following: String url...
WsManager A library that simplifies the use of OkHttp Websocket. ...Instantiate a WsManager object: OkHttpClient okHttpClient = new OkHttpClient().newBuilder() .pingInterval(15, TimeUnit.SECONDS)
{“success”:false,“message”:“Failed to instantiate the chaincode. cause:instantiate proposal resulted in an error :: Error: 2 UNKNOWN: chaincode error (status: 500, message: is not a valid ...
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.amqp.core.Queue]: Factory method 'clientQueue' threw exception; nested exception is org....
So, to handle this two action using this library you need to instantiate ApiAdapter class to perform A network call and invoke NetworkResponse interface to receive the results (to receive both error ...
An android library to make customisable floating animated toasts Getting Started In your build.gradle dependencies { implementation 'hari.floatingtoast:floatingtoast:0.1.0' } Usage Create Floating ...
通过MediaExtractor抽取视频,然后再通过MediaMuxer产生视频文件