I am trying to demo the Android Action Bar and have created an app to try it with. I have installed and linked the library to the project ( I think properly ), and have to the best of my knowledge set it up correctly. The problem though, is that the MainActivity fails to load any of the main resource files.
MainActivity layout:
Create field 'activity_main' in type 'layout'
Menu xml file:
Create field 'menu' in type 'R'
The theme in the Manifest:
No resource found that matches the given name ( at 'theme' with a value
'#style/Theme_appCompat_Light_DarkActionBar')
The main layout and the menu xml both exist, but I admit i don't know where the theme file is to confirm that it exists, though I don't think that is the issue.
I have taken a screenshot that shows the configuration of my projects
The test application and the appcompat folders exist in the same place in the file system, and the build path and library entries all look correct. I can attach screens of those configurations as well if need be.
I feel that this is some kind of configuration error, but i am very new to android development and don't have enough information about the project structure to see where I need to make a change.
Any help would be greatly appreciated.
There seems to be an error in your AndroidManifest.xml. Eclipse won't generate the R ( references file) file until there are no errors in your xml files.
You'll also need the android-support-v13.jar library as that would have some themes in there as well.
If that doesn't work for the theme in the Manifest, you'll need an appropriate themes.xml in your values folder that has the theme name you're looking for. Here's an example:
<!--
the theme applied to the application or activity
-->
<style name="CustomLightTheme" parent="#android:style/Theme.Holo.Light">
</style>
Related
whenever I try to add images to imagelist or change the form icon i get an error arround here
this->Icon = (cli::safe_cast<System::Drawing::Icon^>(resources->GetObject(L"$this.Icon")));
the error "System.Resources.MissingManifestResourceException: 'Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "CppCLRWinFormsProject.Form1.resources" was correctly embedded or linked into assembly "BoneJsonEditor" at compile time, or that all the satellite assemblies required are loadable and fully signed.' "
any possible way to fix this ?
i used a tamplate called CppCLR_WinForm project to start my project
after looking it up a bit i found that i sould change the build action but i can't find that field in the file properities
I often make C++ Google Test projects inside Visual Studio that test another project via Project References.
For the test project to find the tested project's methods, I need to configure something in the "Public Project Content" of the tested project.
By default nothing is public. With every new project I need to edit the properties. So I was wondering, is there a way to make "Yes" the default for "All Header Files are Public", for instance ?
Thanks.
Use a custom Property Sheet that can be added to a project.
View > Property Manager > Add new Property Sheet (the wrench/spanner with the star).
Name it and save it somewhere. (I'd recommend "Google.Test.Default.props" the quotes are required)
Open the sheet by double-clicking on it in the list.
Change only the properties relevant to default Google Test settings.
Apply/OK
The list is ordered where higher entries supersede lower entries and the top-most "project" properties contains all changes and can be modified on a per-project basis.
Then, for every subsequent project:
View > Property Manager > Add existing property sheet
Navigate to the previously saved Google.Test.Default.props file.
Reorder in the list as needed.
Done.
If you've changed any settings in the top-most project settings you'll have to go through them and change the relevant settings to <Inherit from parent or project defaults> to have the project use the new property sheet.
Id like to know the relevance of what-input.min.js include in Zurbs foundation-6 framework , in the js/vendor directory , this is because i keep getting an 404 not found error not loading while running the site , ... js/vendor/jquery.min.map file , is there any connection ?
You don't need the .map file which is used to map a minified file back to the original. It is available for download from jquery's site. Source maps are can be ignored in inspector settings which makes sense when you don't plan on debugging minified javascript files
It is unrelated to the source map file 404 but what-input.min.js is a JS library "to watch for mouse, keyboard and touch events"
They have a github page with more documentation: https://github.com/ten1seven/what-input
and a demo:
https://ten1seven.github.io/what-input/
"Tab, click or tap the links and form controls to see how What Input allows them to be styled differently"
I had this exact same problem on every site when using JointsWP with Foundation 6 framework. I finally just figured it out. I turned off css source mapping and still received the error. It turns out that it wasn't lying to me and the js file really does not exist where it is trying to load it from:
/vendor/what-input/what-input.min.js
But it is under the dist folder within that same directory. So if you find your enqueue-scripts.php file where the what-input.min.js is loaded, you can fix the directory path to:
/vendor/what-input/dist/what-input.min.js
And no more 404!
I have a basic App with QML Extension Library app setup with no changes except package identifiers and the similar (email, description, name).
Every time I open app/testApp.qml I get the following error:
Warnings while parsing QML type information of /var/lib/schroot/chroots/click-ubuntu-sdk-14.10-armhf/usr/lib/arm-linux-gnueabihf/qt5/qml/Ubuntu/Components:
Failed to parse '/var/lib/schroot/chroots/click-ubuntu-sdk-14.10-armhf/usr/lib/arm-linux-gnueabihf/qt5/qml/Ubuntu/Components/plugins.qmltypes'.
Error: /var/lib/schroot/chroots/click-ubuntu-sdk-14.10-armhf/usr/lib/arm-linux-gnueabihf/qt5/qml/Ubuntu/Components/plugins.qmltypes:632:19: Expected string literal to contain 'Package/Name major.minor' or 'Name major.minor'.
/var/lib/schroot/chroots/click-ubuntu-sdk-14.10-armhf/usr/lib/arm-linux-gnueabihf/qt5/qml/Ubuntu/Components/plugins.qmltypes:633:36: Expected array literal with only number literal members.
In addition, and this may be entirely different, when I click the Design button, the system doesn't work and there's an error partially hidden by the right menu. The error is:
The problem is the qml plugin files required are not in the currently specified include directories listed on [projectName].qmlproject in the app project root directory.
I was testing on another project of a different type and I followed these instructions (the project was a QML project with a .qmlproject file).
It was near the bottom of the page, like this:
/* List of plugin directories passed to QML runtime */
importPaths: [ "." ,"/usr/bin","/usr/lib/x86_64-linux-gnu/qt5/qml"]
I ran find / -name *qml* and found something that looked to be a suitable directory, with many items that had a good chance of being qml plugins, so I copied that directory, went to [projectName].qmlproject to the statement posted above and added the directory. The final importPaths statement looks like this:
/* List of plugin directories passed to QML runtime */
importPaths: [ "." ,"/usr/bin","/usr/lib/x86_64-linux-gnu/qt5/qml","/var/lib/schroot/chroots/click-ubuntu-sdk-14.10-armhf/usr/lib/arm-linux-gnueabihf/qt5/qml/Ubuntu/Components/" ]
After doing that, I could open the qml file in designer.
The effect also transferred to my other project, which does not have a .qmlproject file. I'm not sure why. I assume there's some kind of memory of the proper file, although I do not know the specifics.
I have tried to add a new component to Joomla 2.5.8 and getting the following error:
Error loading component: com_mycomp, 1
Error loading component:com_mycomp, 1
Error loading component: com_mycomp, 1
The following steps I have done :
created a folder com_mycomp under components. and created a file mycomp.php under com_mycomp.
created a folder com_mycomp under administrator/components/ and a file admin.mycomp.php under com_mycomp.
Accessed the url :
http://localhost/joomla/index.php?option=com_mycomp
Error loading component: com_mycomp, 1
Any idea how to resolve it.
There may be a few problems going on here:
when doing a "manual" installation you should use the Joomla! Extensions Manager to Discover your manually installed extension (this works for components, modules, plugins and templates).
The minimum files (and directories) you need are the entry point file (mycomp.php) and an manifest file (mycomp.xml) to provide the basic menu elements etc, as discussed in this article.
IT seams you add this component only in filesystem. you must add this component in database to, in table #__extensions type is component. just take some component row in this table and paste it and change only names with your component name