Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Failure [INSTALL PARSE FAILED MANIFEST MAL FORMED]
Started by solca Sep 26 2018 01:31 PM

17 replies to this topic
android build adb install parse failed manifest mal formed

Best Answer solca , 02 October 2018 - 10:55 AM

Solved!!

 

Thanks a lot

 

Solón Cáceres

[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

solca

[GLOBAL: userInfoPane.html]
solca
  • Enthusiast

  • 48 posts
  • Corona SDK

I have problems generating the build for android.
 
Until this morning I had no problem and now I get this error when the process of copying the apk to the device starts
 
Installing and running Risk Hunter on MotoE2(4G-LTE)

2851 KB/s (13822949 bytes in 4.734s)

ERROR:  pkg: /data/local/tmp/CoronaSDK971a94d381da784fb18fbb85a1917224.apk

 Failure [INSTALLPARSEFAILEDMANIFESTMALFORMED]

 Error found during installation!

 

My Corona sdk:

Copyright © 2009-2018  C o r o n a   L a b s   I n c .
Version: 3.0.0
Build: 2018.3378
 
Regards,
 
Solón


[TOPIC: post.html]
#2

solca

[GLOBAL: userInfoPane.html]
solca
  • Enthusiast

  • 48 posts
  • Corona SDK

I have installed a copy of the build.settings file from a backup and the problem persists.
 
Thanks in advance for your answers,


[TOPIC: post.html]
#3

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,714 posts
  • Corona Staff

Can you post the entire console log from your build?

 

Thanks

Rob



[TOPIC: post.html]
#4

solca

[GLOBAL: userInfoPane.html]
solca
  • Enthusiast

  • 48 posts
  • Corona SDK

With pleasure. This is the log console:

 

Using java version "10.0.2" 2018-07-17
Java(TM) SE Runtime Environment 18.3 (build 10.0.2+13)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.2+13, mixed mode)
Using java version "10.0.2" 2018-07-17
Java(TM) SE Runtime Environment 18.3 (build 10.0.2+13)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.2+13, mixed mode)
Building Android app for solon.corona@phonemas.com with 2018.3378
Using custom build id from app bundle: 00000 (AppSettings.lua)
Excluding specified files from build: 
   excluding: LaunchScreen.storyboardc
   excluding: Icon.png
   excluding: Icon-*dpi.png
   excluding: Images.xcassets

BUILD SUCCESSFUL
Total time: 2 seconds
BuildID: 5bac0cbec573a
     [echo]  "creating unsigned.apk" 

BUILD SUCCESSFUL
Total time: 19 seconds
Android build succeeded in 76 seconds
Error running /Applications/Corona-3378/Corona Simulator.app/Contents/Resources/android_sendapp.sh (
    "-r",
    "/Users/scaceresm/Documents/Corona Builds/Risk Hunter.apk"
)
adb I  3546 93229 usb_osx.cpp:259] Found vid=22b8 pid=2e76 serial=TA0930IJ75
adb I  3546 93229 usb_osx.cpp:259] 
Installing and running Risk Hunter on MotoE2(4G-LTE)
3298 KB/s (13823093 bytes in 4.092s)
ERROR:  pkg: /data/local/tmp/CoronaSDK971a94d381da784fb18fbb85a1917224.apk
 Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED]
 Error found during installation!

And the window build say:

Device Installation Problem

adb encountered an error installing the app:

adb I  3546 93229 usb_osx.cpp:259] Found vid=22b8 pid=2e76 serial=TA0930IJ75
adb I  3546 93229 usb_osx.cpp:259] 
Installing and running Risk Hunter on MotoE2(4G-LTE)
3298 KB/s (13823093 bytes in 4.092s)
ERROR:  pkg: /data/local/tmp/CoronaSDK971a94d381da784fb18fbb85a1917224.apk
 Failure [INSTALLPARSEFAILEDMANIFESTMALFORMED]
 Error found during installation!


[TOPIC: post.html]
#5

agramonte

[GLOBAL: userInfoPane.html]
agramonte
  • Contributor

  • 811 posts
  • Corona SDK

Can you try again and make the apk name shorter?



[TOPIC: post.html]
#6

solca

[GLOBAL: userInfoPane.html]
solca
  • Enthusiast

  • 48 posts
  • Corona SDK

Can you try again and make the apk name shorter?

 

Yes, I shortened the name. I have eliminated the uppercase letters. The result is the same.
 
The funny thing is that this morning (8am COT) compiled well.


[TOPIC: post.html]
#7

solca

[GLOBAL: userInfoPane.html]
solca
  • Enthusiast

  • 48 posts
  • Corona SDK

I upgrade to Corona sdk 2018.3381, same result. Fail.

 

regards

 

Solón



[TOPIC: post.html]
#8

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,714 posts
  • Corona Staff

Can you post your build.settings and a screenshot of your build dialog before you hit the build button? Please do not blur out any of the fields.

 

Thanks

Rob



[TOPIC: post.html]
#9

solca

[GLOBAL: userInfoPane.html]
solca
  • Enthusiast

  • 48 posts
  • Corona SDK

build.settings

--
-- For more information on build.settings, see the Project Build Settings guide at:
-- https://docs.coronalabs.com/guide/distribution/buildSettings
--

settings =
{
	--	corona_sdk_simulator_path = "/Applications/Corona-3238/Corona Simulator.app",
	-- Usando suspensión del splash de Corona
	splashScreen = 
    {
        enable = false
    },
	orientation =
	{
		-- Supported values for orientation:
		-- portrait, portraitUpsideDown, landscapeLeft, landscapeRight
		default = "portrait",
		supported = { "portrait", },
	},

	--
	-- Android section
	--
	android =
	{
		largeHeap = true,  -- más RAM para corregir el java.lang.OutOfMemory
		-- hardwareAccelerated = true, -- para corregir el java.lang.OutOfMemory quizá sea false -> WARNING: unrecognized key
		--
		coronaWindowMovesWhenKeyboardAppears = true,
		usesPermissions =
		{
			"android.permission.INTERNET",
			"android.permission.RECEIVE_BOOT_COMPLETED", -- Para que las notificaciones permanezcan si hay un reboot
			-- Camera
			"android.permission.CAMERA",
			"android.permission.WRITE_EXTERNAL_STORAGE",
			-- GPS
			-- Permission to retrieve current location from the GPS
			"android.permission.ACCESS_FINE_LOCATION",
			-- Permission to retrieve current location from WiFi or cellular service
			"android.permission.ACCESS_COARSE_LOCATION",
		},
		usesFeatures =
		{
			{ name = "android.hardware.camera", required = true },
			{ name = "android.hardware.camera.front", required = false },
			{ name="android.hardware.location", required=false },
            { name="android.hardware.location.gps", required=false },
		},
	},

	--
	-- iOS section
	--
	iphone =
	{
		xcassets = "Images.xcassets",
		plist =
		{
			UIStatusBarHidden = false,
			--UIPrerenderedIcon = true, -- set to false for "shine" overlay
			NSCameraUsageDescription = "You must grant permission to access the camera or otherwise you can not report risks in this system",
			NSPhotoLibraryUsageDescription = "You must grant permissions to access the image or photos library of this device. Otherwise you will have limited functionality in this system..",
			UILaunchStoryboardName = "LaunchScreen",
			CoronaWindowMovesWhenKeyboardAppears = true,
			CFBundleVersion = "ALPHA 8.59",  -- Versión para  IOS
			--UIApplicationExitsOnSuspend = true, -- uncomment to quit app on suspend
			ITSAppUsesNonExemptEncryption = false, -- This sample doesn't use custom encryption  (OJO!!!)
			--UIRequiredDeviceCapabilities = {"location-services", "gps", "magnetometer" },
			--UIRequiredDeviceCapabilities = {"location-services", "gps" },
			NSLocationWhenInUseUsageDescription = "You must grant permissions to access the location (GPS) of this device. Otherwise you will have limited functionality in this system.",
		},
	},

	--
	-- Plugins section
	--
	plugins =
	{
		['plugin.toast'] = {publisherId = 'com.spiralcodestudio'},
		["plugin.notifications.v2"] = { publisherId = "com.coronalabs" },
		["plugin.chatterbox"] = { publisherId = "com.develephant" },
		["plugin.OneSignal"] = {publisherId = "com.onesignal"},
		["plugin.nanosvg"] = { publisherId = "com.coronalabs"},
		["plugin.imageCrop"] = { publisherId = "tech.scotth", },
	},

	--
	-- Project section
	--
	excludeFiles =
	{
		-- Exclude unnecessary files for each platform
		all = { "Icon.png", "Icon-*dpi.png", "Images.xcassets", },
		android = { "LaunchScreen.storyboardc", },
	},
}

screenshot before [build]:

 

ScreenShot2018-09-26at7.09.31PM.png



[TOPIC: post.html]
#10

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,714 posts
  • Corona Staff

I've never seen anyone use a "Version Name" that wasn't numeric, like 1.0 or 3.5. It does say "Name", so perhaps it's valid, but it might be worth trying.

 

Secondly make sure your "Safe to Folder" is not the same folder as the "Project Path".

 

I saw a complaint about Package names and mixed case, like Com.Yourname.yourProject causing problems, but I know that com.yourname.YourProject is fie, so your Package Name seems to be okay.

 

I don't see any keys in build.settings that would cause issues.

 

Rob 



[TOPIC: post.html]
#11

Yogi_Bear

[GLOBAL: userInfoPane.html]
Yogi_Bear
  • Observer

  • 2 posts
  • Corona SDK

Having the same issue but noticed solca is also using the One Signal plugin. Removing that lets me at least build and install the apk without the parse error

 

Was the One Signal plugin updated recently?



[TOPIC: post.html]
#12

solca

[GLOBAL: userInfoPane.html]
solca
  • Enthusiast

  • 48 posts
  • Corona SDK

Having the same issue but noticed solca is also using the One Signal plugin. Removing that lets me at least build and install the apk without the parse error

 

Was the One Signal plugin updated recently?

 

It is correct !!.  Thank you very much for your response.
 
I commented on the OneSIgnal plugin line in the build.settings and the build is generated.
 
(but the app is without the push functionality of One Signal) :(
 
Question:
 
Any update of the build server could be affecting the build process ?
 
Regards,
 
Solón

  • Yogi_Bear likes this

[TOPIC: post.html]
#13

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,714 posts
  • Corona Staff

OneSignal was updated today.

 

I'll share this thread with the developer.

 

Rob



[TOPIC: post.html]
#14

solca

[GLOBAL: userInfoPane.html]
solca
  • Enthusiast

  • 48 posts
  • Corona SDK

OneSignal was updated today.

 

I'll share this thread with the developer.

 

Rob

 

Thanks Rob.
 
we will be awaiting the response of the developer.
 
Regards,
 
Solón


[TOPIC: post.html]
#15

josh_OneSignal

[GLOBAL: userInfoPane.html]
josh_OneSignal
  • Enthusiast

  • 54 posts
  • Corona SDK

Hello @solca, OneSignal made a recent Android SDK update for Android Oreo compatibility. We also changed the package name of our classes which for Android from "com.onesignal" to "OneSignal" which cased the INSTALL_PARSE_FAILED_MANIFEST_MALFORMED on older Android devices. We were able to reproduce the issue on an Android 4.4 device but this changed worked fine on Android 8.0.

 

We just pushed a new updated to put our package name back to "com.onesignal" which will fix this issue. I believe it will take a few hours to get synced to Corona's build server before you will see the update take effect.



[TOPIC: post.html]
#16

springmorning

[GLOBAL: userInfoPane.html]
springmorning
  • Contributor

  • 130 posts
  • Corona SDK

Right now I'm getting a "module 'OneSignal' not found" error with every build made with a OneSignal plugin (on android 7, can't test 8 currently). Is that still because the onesignal plugin has not been synced to Corona's build server? Thanks



[TOPIC: post.html]
#17

josh_OneSignal

[GLOBAL: userInfoPane.html]
josh_OneSignal
  • Enthusiast

  • 54 posts
  • Corona SDK

Right now I'm getting a "module 'OneSignal' not found" error with every build made with a OneSignal plugin (on android 7, can't test 8 currently). Is that still because the onesignal plugin has not been synced to Corona's build server? Thanks

 

Sorry for the issue, it was due to a bad update. We have push an update and it should be available in the next few hours.

https://forums.coronalabs.com/topic/72988-onesignal-with-targetsdkversion26-getting-error-background-start-not-allowed-service-intent-cmpcomonesignalgcmintentservicehas-extras/?p=389433



[TOPIC: post.html]
#18

solca

[GLOBAL: userInfoPane.html]
solca
  • Enthusiast

  • 48 posts
  • Corona SDK

  Best Answer

Solved!!

 

Thanks a lot

 

Solón Cáceres




[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: android, build, adb, install, parse, failed, manifest, mal, formed