ANE iOS packaging issue - apache-flex

I pretty stuck, building the ANE and running it via sample application.
I've successfully built ANE and added it to sample project, but while running it on the device I'm getting:
Error occurred while packaging the application:
[Fatal Error] :1:1: Content is not allowed in prolog.
java.io.IOException: PLIST generation failed due to SAX error:org.xml.sax.SAXParseException: Content is not allowed in prolog.
at com.adobe.air.Plist.newFromString(Plist.java:351)
at com.adobe.air.Plist.newFromFile(Plist.java:325)
at com.adobe.air.ipa.IPAOutputStream.setSDKVersion(IPAOutputStream.java:1070)
at com.adobe.air.ipa.IPAOutputStream.setPlatformSDKLocation(IPAOutputStream.java:971)
at com.adobe.air.ipa.IPAPackager.setDeviceSDKDirectory(IPAPackager.java:187)
at com.adobe.air.ADT.parseFileAndPathArguments(ADT.java:1423)
at com.adobe.air.ADT.parseDescriptorAndFileset(ADT.java:1474)
at com.adobe.air.ADT.parseInput(ADT.java:929)
at com.adobe.air.ADT.parsePackage(ADT.java:672)
at com.adobe.air.ADT.parseArgsAndGo(ADT.java:570)
at com.adobe.air.ADT.run(ADT.java:419)
at com.adobe.air.ADT.main(ADT.java:469)
Here is my platformoptions.xml
<platform xmlns="http://ns.adobe.com/air/extension/3.1">
<sdkVersion>7.1</sdkVersion>
<linkerOptions>
<option>-ios_version_min 5.0</option>
<option>myLib.a</option>
<option>-weak_framework Twitter</option>
<option>-weak_framework MessageUI</option>
<option>-weak_framework StoreKit</option>
<option>-framework CoreTelephony</option>
</linkerOptions>
extension.xml
<extension xmlns="http://ns.adobe.com/air/extension/3.1">
<id>com.myCompany.air</id>
<versionNumber>0.0.1</versionNumber>
<platforms>
<platform name="iPhone-ARM">
<applicationDeployment>
<nativeLibrary>myLib.a</nativeLibrary>
<initializer>myANEInitializer</initializer>
<finalizer>myANEFinalizer</finalizer>
</applicationDeployment>
</platform>
</platforms>
</extension>

Related

Azure Functions Errro - Could not load file or assembly System.Configuration.ConfigurationManager, Version=4.0.3.0

I am working on Azure Functions and these are created in .Net Core version 3.1 whereas the other libraries are written in .Net Framework 4.8. While executing the functions, I am getting following error -
System.Private.CoreLib: Exception while executing function: XXXXXX. System.Private.CoreLib: One or more errors occurred. (The type initializer for 'XXXXX' threw an exception.). XXXX.Service: The type initializer for 'XXXXX.Service.XXXXX' threw an exception. XXXX.Service: Could not load file or assembly 'System.Configuration.ConfigurationManager, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.
Suggestions would be appreciated.
You can work around the issue by adding the _FunctionsSkipCleanOutput to the project file.
<PropertyGroup>
<_FunctionsSkipCleanOutput>true</_FunctionsSkipCleanOutput>
</PropertyGroup>
Make sure your package version exists. From this it seems that there is no package version in which you reported an error, check this link:
https://www.nuget.org/packages/System.Configuration.ConfigurationManager/5.0.0-preview.1.20120.5
Click Version History, and you will find:

Can't integrate Firebase with my application

When I integrate Firebase with my app, Build failed with an exception.
Although the first error that occurred was a gradle update, i've tried and i still get an error while running gradle.
Because there was no error in the code and the amount of coding was too much, I can only show error messages.
Error running Gradle:
ProcessException: Process "C:\Users\82109\AndroidStudioProjects\instargram_clon\android\gradlew.bat" exited abnormally:
Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details
Configure project :app
WARNING: API 'variant.getMergeResources()' is obsolete and has been replaced with 'variant.getMergeResourcesProvider()'.
It will be removed at the end of 2019.
For more information, see d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variant.getMergeResources(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information.
WARNING: API 'variant.getJavaCompile()' is obsolete and has been replaced with 'variant.getJavaCompileProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variant.getJavaCompile(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information.
WARNING: API 'variant.getMergeAssets()' is obsolete and has been replaced with 'variant.getMergeAssetsProvider()'.
It will be removed at the end of 2019.
For more information, see d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variant.getMergeAssets(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information.
WARNING: API 'variantOutput.getProcessResources()' is obsolete and has been replaced with 'variantOutput.getProcessResourcesProvider()'.
It will be removed at the end of 2019.
For more information, see d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variantOutput.getProcessResources(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information.
*********************************************************
WARNING: This version of image_picker will break your Android build if it or its dependencies aren't compatible with AndroidX.
See goo.gl/CP92wY for more information on the problem and how to fix it.
This warning prints for all Android build failures. The real root cause of the error may be unrelated.
*********************************************************
Command: C:\Users\82109\AndroidStudioProjects\instargram_clon\android\gradlew.bat app:properties
Finished with error: Please review your Gradle project setup in the android/ folder.
※ When integrating Firebase with my app, I'm wondering if several versions are all up-to-date. This is because i have optionally and randomly changed to the latest version.
for firebase you can integrate your app manually see firebase documentation
for a quick answer follow this steps:android
Create a Firebase project
Register your app with Firebase
Add a Firebase configuration file (google-services.json)
Add Firebase SDKs to your app
WARNING: This version of image_picker will break your Android build if it or its dependencies aren't compatible with AndroidX => update your image_picker

building oozie: Unknown host repository.codehaus.org

I'm trying to build Oozie 4.2.0 downloaded from here: http://ftp.cixug.es/apache/oozie/4.2.0/oozie-4.2.0.tar.gz
After launching the build
bin/mkdistro.sh -DskipTests
I'm getting this error:
[ERROR] Failed to execute goal on project oozie-core: Could not resolve dependencies for project org.apache.oozie:oozie-core:jar:4.2.0: Could not transfer artifact org.apache.hbase:hbase:jar:1.1.1 from/to Codehaus repository (http://repository.codehaus.org/): Unknown host repository.codehaus.org
From what I'm seeing on the Internet, codehause repository is not available any more. Is there a way to build Oozie without it?
Just for the sake of helping people seeing this question in the future , you can resolve this through backing up this repo source with another source
The Codehaus hosting platform was ended, i.e., their public Maven repository is gone, too. You should try to follow their advice and add the following to your ~/.m2/settings.xml file:
<repositories>
<repository>
<id>Codehaus repository</id>
<name>codehaus-mule-repo</name>
<url>https://repository-master.mulesoft.org/nexus/content/groups/public/
</url>
<layout>default</layout>
</repository>
</repositories>
This should use a backup repository to get the missing dependency.
Source : Missing dependency hive-builtins causes build failure with error code 410 for Oozie

Getting error while deploying WAR file

I am getting below error while deploying war file .Here JDK version on development machine and deployment machines is same then also i am getting this error.
[05/Jun/2013:11:20:42] failure ( 5712): WebModule[/cover]: WEB2671: Error configuring application listener of class com.bt.cover.ContextListener
java.lang.UnsupportedClassVersionError: com/bt/cover/ContextListener (Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1717)
at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:983)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1431)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1301)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3349)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3743)
at com.iplanet.ias.web.WebModule.start(WebModule.java:251)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:652)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:355)
at org.apache.catalina.startup.Embedded.start(Embedded.java:995)
at com.iplanet.ias.web.WebContainer.start(WebContainer.java:431)
at com.iplanet.ias.web.WebContainer.startInstance(WebContainer.java:500)
at com.iplanet.ias.server.J2EERunner.confPostInit(J2EERunner.java:161)
Based on this answer: Unsupported major.minor version 49.0, it looks like you may be running on a different JVM from what you used to compile your code. Hope this helps.

Flex 4 now throws Security sandbox violation: file:///ProfilerAgent.swf

So I was doing some profiling on a Flex project and then went to go build a release build. Now when ever I export a release build it gives a runtime security error saying its trying to load the ProfilerAgent.swf
Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: file:///Users/foobar/Documents/Adobe Flash Builder 4/.metadata/.plugins/com.adobe.flash.profiler/ProfilerAgent.swf?host=localhost&port=9999 cannot load data from localhost:9999.
Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: file:///Users/foobar/Documents/Adobe Flash Builder 4/.metadata/.plugins/com.adobe.flash.profiler/ProfilerAgent.swf?host=localhost&port=9999 cannot load data from localhost:9999.
Even when I exit, restart, punch Flash Builder 4 it doesn't seem to go away. I tried manually compiling using the mxmlc via the command line and I'm still getting that error when it is running from my server. Any one have any ideas on how to fix it?
Try to locate mm.cfg in your OS according with these instructions. Then check and comment (using # at the beginning of the line) lines starting with ProfilingFileOutputEnable and PreloadSwf.
Hope this helps!
Open up mm.cfg and make sure the following instructions are in configuration:
ProfileFunctionEnable=1
ProfilingOutputFileEnable=1
RendererProfilingEnable=1

Resources