I have refactored my app by splitting into modules (:app, core and features). It works correctly on emulator so I decided to upload to the internal test track on Play Console but it shows an error during importation :
The screencap is in french but it says basically "An error occurred during importation of Android App Bundle package. Please try again later. If the problem persists, contact Google Play assistance service for developers"
This message doesn't give any clue about what the problem is !
The previous uploaded version of this app was already an App Bundle and is currently released successfully.
The big difference between both versions is that the new one is split into modules (but no dynamic features or anything). I have added android:hasCode=true to :app module manifest.
I have retried after invalidate, restart, clean, rebuild and regenerate bundle. I have retried on another day.
I have downgraded from Android Studio 3.4 to 3.3.2 (and Gradle as well) to be sure that R8 is disabled.
No luck... Any idea ?
After many tries, it occurred to me that maybe I would get a more explicit message by uploading an APK instead of a Bundle.
And I did !
Failed to run aapt dump badging:
AndroidManifest.xml:63: error: ERROR getting 'android:name' attribute: attribute is not a string value
Because I had an #string for a intent name instead of an hardcoded string (-shame-)
Anyway, to be remembered : When Bundle importation doesn't work, try uploading a simple APK to get a more explicit error message !
Related
When I attempt to upload my apk then everytime I get the following error:
"Upload error
UPLOAD NEW APK TO PRODUCTION
Upload failed
You need to use a different package name because "com.google" is restricted."
When I rename or refactor based on the multiple different steps suggested on this site to change "com.google.samples.apps.myapp" it breaks the program in a manner which then prevents it from a successful "build"
I have read and reread: "com.example restricted" Google Play error; even when changing the package name AND also
Android Studio Rename Package
I suspect that the refactor does not correct the links I need to the R file? Any help would be appreciated.
If you're using Android Studio / Gradle you don't need to change your package name (as it impacts your resources) but only the "applicationId" which is whats used for publishing.
Details here: http://tools.android.com/tech-docs/new-build-system/applicationid-vs-packagename
I am using facebook-unity-sdk-7.3.0 and GooglePlayGamesPlugin-0.9.32 in my project. it does not let me build for android and fails with error 'Unable to convert classes into dex format. See the Console for details.'. It starts working again when I delete any of the sdk fb or googleplay from my project.
Console error
CommandInvokationFailure: Unable to convert classes into dex format.
See the Console for details.
/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/bin/java
-Xmx2048M -Dcom.android.sdkmanager.toolsdir="/Users/shoaib/Library/Android/sdk/tools"
-Dfile.encoding=UTF8 -jar "/Applications/Unity/PlaybackEngines/AndroidPlayer/Tools/sdktools.jar"
and
Error building Player: CommandInvokationFailure: Unable to convert
classes into dex format. See the Console for details.
/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/bin/java
-Xmx2048M -Dcom.android.sdkmanager.toolsdir="/Users/shoaib/Library/Android/sdk/tools"
-Dfile.encoding=UTF8 -jar "/Applications/Unity/PlaybackEngines/AndroidPlayer/Tools/sdktools.jar"
I did some research on it and found that this issue is related to two same jar files in the project but in my project, I unable find any duplicate jar file.
Edited
for reproducing the issue, I have made a sample project which can be downloaded from here http://wikisend.com/download/966354/LeaderboardTest.zip
Go to Assets->FacebookSDK->Plugins->Android->libs then delete android-support-v4.jar. There is a conflict there because it contains a class from another jar or aar file.
'Unable to convert classes into dex format. See the Console for details.'.
this one shows up when a class/dll exists twice in the project.
Often it happens when updating framework, if you do not remove the old version properly, then some classes may appear twice.
Since they are stored in plugins folder, Unity does not check them and they only show up in build process.
Best could be to remove everything related to both plugins and reimport them. That solved it for me when using UniWebView and Vuforia in same app. One of those was not properly updated.
In my case I could solve this problem by removing Android SDK Build-Tools version 24 and replacing it with version 23.
Maybe it's too late to answer, I was facing the same issue, I created a plugin this plugin contains Facebook SDK+Admob+unityads +unity IAP, all of them work together, I've created this plugin in unity 5.6.0, but I've checked it, it is working fine in unity 2017 as well, there is a scene "DemoScene", just open it everything is implemented, unity ads, admob, facebook share with callback, unityIAP.
Note: before importing the plugin kindly delete all the old plugins, also go to services and turn on unity ads.
http://www.mediafire.com/file/ccvj7ixir8ive25/FB_ADMOB_UnityIAP_UnityAds_Plugin_Hameed_Ullah_jan.unitypackage
I have no Idea what is happening, last time when I finished my app I build its release apk and all was working just fine as expected but now today when I tried to make that pproject again and to make another apk I am getting the following error.
Error:Execution failed for task ':app:mergeDebugResources'.
Crunching Cruncher common_signin_btn_icon_pressed_light.9.png failed, see logs
I have no idea how to resolve it I have serached and found restarting Android studio and clean the project would remove it , doing this many times has no effect on this error. I have even restarted my machine but the condition of error in same.
In the logs I have seen that this png file is from the library I added , so just for testing I removed that library and tried to build then it started to give me same error with different png file name in other library. So how to fix this issue ?
My Questions are :
How can this issue be Solved ?
Have some one faced this problem too ?
Is this problem has been reported to google ?
Why in android we do not have any stable platform for development as IOS have ?
Try to remove "builds" folders and do rebuild. But soon, the whole thing in a long file name. Read this answer. By the way, you looked logs? Maybe this is not the PNG? You have not sent the log and did not specify the version Gradle.
Believe me, iOS developers have own problems.
I followed the first tutorial of Phonegap - getting started with Android. I wrote the example "HelloCordova" as showed here. But when I click "run as Android application" Eclipse displays your project contains error(s), please fix them before running your applications. No error is pointed! I can't understand where's the problem (my file matches the example)!
Problems:
Error generating final archive: Debug Certificate expired on 07/04/12 0.34
Location: Unknown
Type: Android Packaging Problem
Any advice? Thanks!
This problem is not related with Phonegap ...
You should delete the debug file at "%USERPROFILE%/.android/debug.keystore", so then eclipse will gerenate a new debug file
Check the android manifest file for any errors. Even the manifest file must be free of errors. You may have overlooked it as it is the last third file. Check with that for errors.
Whenever I create a new project in Eclipse for some Android application it gives me a red cross sign and on compiling shows following errors:
error generating final archive: java.io.FileNotFoundException: C:\..\bin\resources.ap_ does not exist
Unparsed aapt error(s)! Check the console for output.
On Googling I found that by cleaning the project we can remove this error but it is not working in my case.
Earlier I was able to create Project in Eclipse. All this problem started after installing some Google APIs but I guess they are not cause of problem, something else is there.
Could it be an issue with a command path?
SDK doesnt like being installed in dirs with long names like "Program Files\Google\Android..."
If thats the case, youll need to adjust path appropriately (C:\Progra~2... or smth like this)
( check http://ideanotion.net/android-sdk-invalid-command-line-parameter-files-error/ or Google )