Database creation Failed in Genexus Offline android app - genexus

I have a couple issues with an Offline Android app developed in Genexus 16 U11 in C# Environment and SQL 2017.
First of all, when I press Build All to any changes to the OfflineDatabase object, Genexus' Navigation View marks it has an error, but it doesn't specify where it is or in what consist the error (and the build log doesn't mention any error either). I also tried to quote or straight remove all the code in said object, so it can be built clean, and still get an error without any clue about what may be going on.
On the other hand, the app also throws an "Database creation Failed" error before the app starts and also I can't find any message regarding this specifically in the ADB monitor, but for some reason Genexus still manages to build.
Any ideas about what may be happening? do you guys need more information about this issue?
thanks beforehand

I Have just solved this issue.
When I made an Rebuild All, i've noticed at the output log had a line that said
GeneXus Java Make v1.0
Ruta de acceso no válida
0 archivo(s) copiado(s)
.\..\gxcommonclass\. : no existe tal archivo o directorio
found out (throughout another Offline Mobile KB) that there was a gxcommonclass folder in [EnironmentFolder]\mobile\Android, but in the one I was having trouble didn't had one, only a gxcommon folder.
Manually created an gxcommonclass, copied the contents of gxcommon to gxcommonclass and now it works and the message is
GeneXus Java Make v1.0
Build succeeded.
Creating Client Access Package
179 archivo(s) copiado(s)
I hope this helps to anyone in the future

This problem is with Android compilation in a Windows 11 machine.
More details here:
https://www.genexus.com/en/developers/websac?data=50349
In the link you can find file you need to copy to solve the problem. In v17u2 and above the fix is already include in Genexus.
Best,

Related

Error: Access denied finding property "vendor.gralloc.disable_ahardware_buffer"

I'm an advanced beginner, self-learning, currently learning how to build an app with Flutter/Dart. I have the above message in my Visual Studio Code debug console after making a change to my code to center a network image. I am using my phone for debugging, code ran successfully prior to center. I've googled the message both with and without quotes, with quote five results which I didn't find helpful, without quotes 10 results which aren't pertinent.
What else can I tell you? Thanks for the help.
Built build\app\outputs\apk\debug\app-debug.apk.
Reloaded 1 of 440 libraries in 1,455ms.
I/OpenGLRenderer(29193): Initialized EGL, version 1.4
D/OpenGLRenderer(29193): Swap behavior 2
W/RenderThread(29193): type=1400 audit(0.0:1932): avc: denied { read } for name="u:object_r:vendor_default_prop:s0" dev="tmpfs" ino=21490 scontext=u:r:untrusted_app:s0:c218,c256,c512,c768 tcontext=u:object_r:vendor_default_prop:s0 tclass=file permissive=0
E/libc (29193): Access denied finding property "vendor.gralloc.disable_ahardware_buffer"
Reloaded 0 of 440 libraries in 359ms.```
Checking the comments, it looks like the issue was resolved by running an app restart. Given that the issue was fixed by running a restart, it's likely that there's an app state retained that might've caused the error.
With the given details, it's difficult to determine the cause of this issue. If anyone is having similar errors, please file it here https://github.com/flutter/flutter/issues/

Xamarin Forms error when compiling in release mode for Android - No resource found that matches the given name 'Base.V21.Widget.Design.AppBarLayout'

I am getting the following error when I attempt to compile in release mode to put my application in the Android App Store. I do not get the error when I compile for debug mode.
I have found references to similar errors. They seem to revolve around the android support services not matching the Android SDK. I am running on the Android 28 SDK. I have updated my google support libraries to the v28.0.0 in NuGet. I am running in macosx and am using vs mac.
I am quite at a loss on this issue. Any suggestions are appreciated.
TIA
...../obj/Release/lp/40/jl/res/values-v26/values-v26.xml(0,0): Error APT0000: Error retrieving parent for item: No resource found that matches the given name 'Base.V21.Widget.Design.AppBarLayout'. (APT0000)....
Ok, I'm not sure that I have "solved" the problem completely, but I have at least solved it for the moment. I kept digging into the output and found a funny character in the custom proguard.cfg information in the build output. I opened the proguard.cfg file that I had created in notepadd++. Sure enough, notepadd++ is set to encode with the "UTF-8 with BOM" setting. I changed that, resaved, rebuilt, and no errors. I'm going to keep a watchful eye on this, but the problem for the moment is resolved. Thanks for everyone's input. It was much appreciated. :-)

Running unit tests in Xcode 8 causes error "could not load inserted library '.../IDEBundleInjection' because image not found"

I am suddenly running into the error when testing my iOS 10 app in Xcode 8.
dyld: could not load inserted library
'__PLATFORMS__/iPhoneOS.platform/Developer/Library/PrivateFrameworks/IDEBundleInjection.framework/IDEBundleInjection'
because image not found
The app's tests ran successfully before. I had then deleted the skeleton UI Test Case class that was created together with the project, so this may have caused the problem (somehow). I have since recreated that class, but the problem remains.
What exactly does the error message indicate and how can I overcome the problem, i.e. successfully run the app's unit tests again.
UPDATE There must be another root case, for if I create another (empty) Single View Application project in Xcode and run its unit tests, the same error occurs.
The error only occurs when running unit tests on a device, not on simulators.
UPDATE This response from Apple to a similar report suggests the error is related to code signing. The app itself runs fine on the same device, so how could there be a code signing issue in my case?
Try these one by one:
Try to create a new UnitTest target, copying everything over, and removing the old one.
In General Tab Panel, do not leave the Team to "None". Select your team. And select the correct Code Signing Identity from Settings. It was set to a non default - changed to 'IOS Developer' for the Debug setting entry.
Disable "Enable guard Malloc" from diagnostics to run app in device.
This may be because Xcode mount wrong DeveloperImage. If you open the Settings-> Developer you will see that the "Enable UIAutomation» and others are missing. To fix:
(A) move all folders from "/Applications/Xcode8.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport" except "10.0 (12A4297e)" to safe place
(B) reboot the phone
(C) connect your phone to xCode 8
(D) restore folders in DeviceSupport
This is the only thing that helped me. Even re-flashing on ios10 does not helps.
This is old, but it may help you: In the target's General tab, there is an Embedded Binaries field. When you add the framework there the crash is resolved.
Reference is https://devforums.apple.com/message/991384#991384 on Apple Developer Forums.
Best of luck!
There is a restart mechanism in Xcode testing infrastructure that detects crashes during tests and attempts to restart testing to complete any remaining tests. There may be an issue with how that mechanism is setting up DYLD_INSERT_LIBRARIES following a crash in your tests - please file a report at https://bugreport.apple.com and attach your project if possible.

Cannot update Tango Core - "Package file was not signed correctly"

Got my Tango tablet last night and tried to get it going by installing required packages. Updating "Project Tango Core" app failed. Here's the error I get:
Anybody else seen this and know how to fix it?
Here's some info that may be required:
Looking at the build number that you have pictured above, this is an old OS build. In order to fix this issue you need to perform an update on the system software (Settings->About Tablet->System Updates).
Once you have updated to the latest software version, currently Cantor, this issue should resolve itself.
Edit : If your tablet does not see the update you may need to perform a factory data reset (Settings->Backup and Reset->Factory Data Reset).
Cheers,
Chase

multi-device hybrid app fails to build - The certificate specified has expired

I started playing around with deploying a multi-device hybrid app. today. I am not sure the exact steps I took whilst doing this, but now when I try to build for windows 8 I get the following:
Error 3 The certificate specified has expired. For more information
about renewing certificates, see
http://go.microsoft.com/fwlink/?LinkID=241478.
[D:\dev\client\source\myApp\bld\Debug\platforms\windows8\CordovaApp.jsproj]
C:\Program Files
(x86)\MSBuild\Microsoft\VisualStudio\v12.0\AppxPackage\Microsoft.AppXPackage.Targets
1772
There doesn't seem to be any way to configure or renew test certificates for this type of project.
Any help would be much appreciated.
Another way to fix this issue in CPT3.0 is to replace CordovaApp_TemporaryKey.pfx under
%userprofile%\.cordova\lib\npm_cache\cordova-windows\3.6.4\package\template\CordovaApp_TemporaryKey.pfx with the latest one from here.
Once you've downloaded the file, just rename it to CordovaApp_TemporaryKey.pfx
This way you do not have to copy the certificate every time you create new project.
Due to a coding error, the Windows Cordova platform has a temporary key in it that expired on 11/11/2014. Microsoft is actively working with the community on a long term fix. To work around this issue, create a Windows Store project (WWA), take the “_TemporaryKey.pfx” from the Windows Store project, and put it in your Tools for Apache Cordova project in following location:
• CTP 1 or 2: res/cert/windows8/CordovaApp_TemporaryKey.pfx
• CTP 3: res/native/windows/CordovaApp_TemporaryKey.pfx
This post by MS Open Tech has details and a certificate that you can download.

Resources