Delphi Android: After adding service to app icons and splashscreen images disappears - android

I've got a massive error. When I add to project new local service - my main app dosent lunch. This errors I got:
[PAClient Error] Error: E2312 Unable to execute '"C:\Users\Public\Documents\Embarcadero\Studio\17.0\PlatformSDKs\android-sdk-windows\build-tools\26.0.1\aapt.exe" package -f -M "D:\a\Android\Debug\asas\AndroidManifest.xml" -F "D:\a\Android\Debug\asas\bin\asas-unsigned.apk" -I "C:\Users\Public\Documents\Embarcadero\Studio\17.0\PlatformSDKs\android-sdk-windows\platforms\android-26\android.jar" -S "D:\a\Android\Debug\asas\res" -A "D:\a\Android\Debug\asas\assets" "D:\a\Android\Debug\asas\library" "D:\a\Android\Debug\asas\classes"' (Error 1)
[PAClient Error] Error: E2312 D:\a\Android\Debug\asas\res\drawable\splash_image_def.xml:2: error: Error: No resource found that matches the given name (at 'src' with value '#drawable/splash_image').
When I go to the Project -> Options -> Application I cant see any of icons or splashscreen images, they disappears. When I add this files manually - app is compiling without errors and starts, but only show black screen for a half second and shutdown. Without adding to project a service everything works very well, app starts normally. I tried reinstall Rad Studio - and nothing changes... In about month ago I created app with service and Delphi works fine. Im using Delphi 10 Seattle.
I dont know what I must do... my project stuck. Please, help me...

The problem was in Project Menager (upper right corner). To compile and run application correctly you must double click at main app name. When you did it, name of main app is bold. Then - everything is working very well. Thats all.

Related

cmd: Command failed with exit code 1, Error : No resource found that matches the given name (at 'icon' with value '#drawable/icon')

So i have found a few questions that start the same, but none of them apply to my exact situation, as such neither do the answers.
i'm using cordova in VS studio 2015 and everything was fine 1 hour ago.
But for some reason the builds fail when deploying to device(or emulator) now, even though i have changed nothing in my code!
(i added 1 small IF statement, that i have since rolled back)
The error i get is :
cmd: Command failed with exit code 1 FriendFinder C:\uni
project\FriendFinder\FriendFinder\FriendFinder\ERROR building one of
the platforms 1
reading full debug log, and finding the first instance of the word "failed" revealed it to be here :
C:\uni
project\FriendFinder\FriendFinder\FriendFinder\platforms\android\build\intermediates\manifests\full\debug\AndroidManifest.xml:29:
error: Error: No resource found that matches the given name (at 'icon'
with value '#drawable/icon'). (TaskId:11)
All the fixes i've found say to remove that line, or use a different icon, or something similar. Yet i have never set any icons, nor do i plan to for some time, and the manifest is un-editable(it's re-generated each build by VS)
I'm truly baffled, because i effectively haven't changed anything since it was working fine 1h ago.
Turns out visual studio had deleted the resources from the project, all by itself.
Creating a new blank Cordova app and copying the generated ones across to this project fixed the problem.

Error building openframeworks for android: “ invalid use of incomplete type ‘class Poco::Path’”

I am trying to build an android application with OF. The application runs in two other computers. However, it does not work on mine. I am using a mac.
I run the command "make AndroidDebug" in the project folder, and this is the error I have:
/Library/openFrameworks/addons/ofxHTTP/libs/ofxHTTP/src/PostRouteFileHandler.cpp:98:46: error: invalid use of incomplete type 'class Poco::Path'
ss << Poco::Path(formFileName).getExtension();
I have installed poco, but nothing changes afterwards.
What can I do to solve this?
Thanks
Have you included Poco/Path.h?
A forward declaration might appeared earlier (possibly in another header) without complete definition.

Failed to compile and run for Android with Cordova 3.5

I installed the extensions and created the new project based on Installed/Templates/Other Languages/JavaScript/Muti-Device Hybrid App/Blank App (Apache Cordova)
I selected Android as the platform.
I selected Ripple - Nexus 7 (Tablet) as the debugger and pressed F5 to compile and run.
It errors out with the following error: "Error 2 ENOENT, no such file or directory 'C:\Users\C.cordova\lib\android\cordova\3.5.0\VERSION' C:\DATA\SOURCE\AllSoc\AllSoc\EXEC 1 1 AllSoc
The project is called AllSoc.
Does anyone have any idea how to get unstuck from here. From all the documentation and videos I've seen, this part SHOULD just work.
Thanks in advance.
Per Ellen's (https://stackoverflow.com/users/3912411/ellen) suggestion above, I deleted the C:\Users\C.Cordova folder's contents and then reran the project. This time around it worked as expected.

Android: Gradle Error in Android Studio

I recently added some .gifs to my /drawable so that I can use them with buttons. This worked fine (no errors). Now, when I go to rebuild/run my application, I get the following error:
Error: Gradle: Execution failed for task ':MyProject:mergeDebugResources'. > Index: 0
I'm not sure how to fix this (and there appears to be no other similar issues that I could find online.
Edit: Now it's the same error, but it also says (at the end of the first error)
Running /Applications/Android Studio.app/sdk/build-tools/android-4.2.2/aapt failed. See output
Okay, I fixed the issue. It was quite weird.
A) I had some capital letters in my res/drawables folder. Not too weird -- I can see how that would remove the first error.
B) Then, however, a lot of values in my main activity file became undefined. I had to manually import 'com.myapp.R'. Now that was weird.
Fortunately, everything is now working.
I hope that if anyone gets the same errors as me, that this response can help them.

Eclipse / ADT not updating package when re-running after editing XML

So this is probably a dumb question as I'm just dipping my feet into Android App development. Im using Eclipse / ADT build 21.1.0. and am running through the android developer tutorial found at http://developer.android.com/training/basics/firstapp/building-ui.html.
Which, the above link is where I'm hitting an odd snag. Following the instructions, editing the XML, then running the emulator, the app refuses to show the text fields and continues to show Hello World.
I have to assume theres a build function to update the edited XML files, but this is not described in the tutorial, and Ive followed the editing instructions specifically, I cant figure out how to update the R.java file with my new edits (tutorial suggests it does this automatically).
I know I'm making a rookie mistake... But have been unable to find a solution to move forward.
Furthermore, Im getting this on first run:
[2013-02-27 12:36:38 - MyFirstApp] W/ResourceType( 5128): Bad XML block: header size 284 or total size 0 is larger than data size 0
[2013-02-27 12:36:38 - MyFirstApp] C:\Users\jkyle\workspace\MyFirstApp\res\menu\main.xml:3: error: Error: No resource found that matches the given name (at 'title' with value '#string/action_settings').
I run it again, it runs and it says all is well.
Any help is mucho appreciated.
Add an entry like <string name="action_settings">action Settings</string> in strings.xml

Categories

Resources