我正在失去理智,试图使用CDT插件从eclipse构建我的NDK项目,我得到错误: -
NDK (Cannot run program "ndk-build": Unknown reason)
Run Code Online (Sandbox Code Playgroud)
应用程序运行,但我松开了构建过程的所有控制台输出,这是一个噩梦,当我尝试编译时,我必须在命令行上执行此操作.
这就是我到达那里的方式: -
I Downloaded and installed the CDT plugin for Eclipse.
Run Code Online (Sandbox Code Playgroud)
然后:
Added my JNI folder and also your Android.mk in the JNI directory.
Run Code Online (Sandbox Code Playgroud)
然后:
Go FILE / NEW / OTHER /C/C++ / ( Convert to a C/C++ Project )
Run Code Online (Sandbox Code Playgroud)
在设置我的构建目标时:
Check the project, choose MakeFile Project and Other Toolchain click NEXT
Run Code Online (Sandbox Code Playgroud)
最后在项目属性中:
PROJECT / PROPERTIES / C/C++ uncheck " use default build command" replace "make" with "ndk-build"
Run Code Online (Sandbox Code Playgroud)
然后在构建时将错误吐出到控制台.虽然它编译并使得在设备上运行的构建我看不到任何构建输出.
我在.bash_profile中使用以下变量进行"ndk-build": …
为了说明我测试的地方,HTC Desire S,Android 2.3.5和ndk-r8.
我在ndk-r7b和ndk-r8中使用android_app-> activity-> internalDataPath或externalDataPath访问本地读写目录时遇到问题,因为它们都是NULL.我看到这已经发布在以前的版本中,根据这篇文章,更新将解决这个问题: -
现在也许这可以在冰淇淋三明治中修复,但这远非理想,因为我的工具链完全支持向后兼容性,以捕捉那些不更新的人.所以我的问题是有一个已知的修复还是我必须手动添加目录结构,如"/data/data/com.example.mytest/files/somefile.dat",直到它修复?
我不太可能遇到任何可能存在的屋顶,但我可能会向IntentService发送大量意图.
我很想知道你可以发送给IntentService的Intents数量是否有上限?队列有大小限制吗?我在文档中找不到任何关于此的内容.
提前致谢
我创建了一个UIView与UICollectionView.
在UIView我已经符合的接口声明中UICollectionViewDataSource,UICollectionViewDelegate协议:
@interface TestOverview : UIView <UICollectionViewDataSource, UICollectionViewDelegate>
Run Code Online (Sandbox Code Playgroud)
但是,当我运行应用程序时,它崩溃了,我得到这个错误: -
error: -[TestScreenViewController collectionView:numberOfItemsInSection:]: unrecognized selector sent to instance.
Run Code Online (Sandbox Code Playgroud)
collectionView:numberOfItemsInSection是在UIView(TestOverview)中,它被声明为委托UICollectionView.那么为什么它期望在UIViewController(TestScreenViewController)中收到它,其中包含的UIView包含UICollectionView?