Compiled crdroid, device cereus android 11. At the very end of the compilation an error popped up:
The beginning of the error (the rest is not interesting)
FAILED: out/target/product/cereus/lineage_cereus-ota-eng.alexander.zip out/target/product/cereus/ota_metadata
/bin/bash -c "PATH=out/host/linux-x86/bin/:system/extras/ext4_utils/:\$PATH out/host/linux-x86/bin/ota_from_target_files --verbose --extracted_input_target_files out/target/product/cereus/obj/PACKAGING/target_files_intermediates/lineage_cereus-target_files-eng.alexander --path out/host/linux-x86 --backup=true -k build/make/target/product/security/testkey --output_metadata_path out/target/product/cereus/ota_metadata out/target/product/cereus/obj/PACKAGING/target_files_intermediates/lineage_cereus-target_files-eng.alexander.zip out/target/product/cereus/lineage_cereus-ota-eng.alexander.zip"
2022-01-22 19:44:39 - common.py - WARNING : Failed to read SYSTEM/etc/build.prop
2022-01-22 19:44:39 - common.py - WARNING : Failed to read VENDOR/etc/build.prop
2022-01-22 19:44:39 - common.py - WARNING : Failed to read VENDOR/build.prop
2022-01-22 19:44:39 - common.py - WARNING : Failed to read PRODUCT/etc/build.prop
2022-01-22 19:44:39 - common.py - WARNING : Failed to read PRODUCT/build.prop
2022-01-22 19:44:39 - common.py - WARNING : Failed to read SYSTEM_EXT/etc/build.prop
2022-01-22 19:44:39 - common.py - WARNING : Failed to read SYSTEM_EXT/build.prop
2022-01-22 19:44:39 - common.py - WARNING : Failed to read ODM/etc/build.prop
2022-01-22 19:44:39 - common.py - WARNING : Failed to read ODM/build.prop
end of error
2022-01-22 19:44:42 - blockimgdiff.py - INFO : Finding transfers...
Traceback (most recent call last):
File "/home/alexander/crDroid/out/host/linux-x86/bin/ota_from_target_files/internal/stdlib/runpy.py", line 174, in _run_module_as_main
File "/home/alexander/crDroid/out/host/linux-x86/bin/ota_from_target_files/internal/stdlib/runpy.py", line 72, in _run_code
File "/home/alexander/crDroid/out/host/linux-x86/bin/ota_from_target_files/__main__.py", line 12, in <module>
File "/home/alexander/crDroid/out/host/linux-x86/bin/ota_from_target_files/internal/stdlib/runpy.py", line 174, in _run_module_as_main
File "/home/alexander/crDroid/out/host/linux-x86/bin/ota_from_target_files/internal/stdlib/runpy.py", line 72, in _run_code
File "/home/alexander/crDroid/out/host/linux-x86/bin/ota_from_target_files/ota_from_target_files.py", line 2333, in <module>
File "/home/alexander/crDroid/out/host/linux-x86/bin/ota_from_target_files/ota_from_target_files.py", line 2312, in main
File "/home/alexander/crDroid/out/host/linux-x86/bin/ota_from_target_files/ota_from_target_files.py", line 2052, in GenerateNonAbOtaPackage
File "/home/alexander/crDroid/out/host/linux-x86/bin/ota_from_target_files/ota_from_target_files.py", line 774, in WriteFullOTAPackage
File "/home/alexander/crDroid/out/host/linux-x86/bin/ota_from_target_files/ota_from_target_files.py", line 689, in GetBlockDifferences
File "/home/alexander/crDroid/out/host/linux-x86/bin/ota_from_target_files/common.py", line 2661, in __init__
File "/home/alexander/crDroid/out/host/linux-x86/bin/ota_from_target_files/blockimgdiff.py", line 342, in Compute
File "/home/alexander/crDroid/out/host/linux-x86/bin/ota_from_target_files/blockimgdiff.py", line 1561, in FindTransfers
AssertionError
19:44:42 ninja failed with: exit status 1
#### failed to build some targets (16:19 (mm:ss)) ####
As I understand the problem in the build.prop files. in those folders (where the error can not read) they are not. What should I do to create them?
find the releasetools.py in your device tree
search for android_info add .decode('UTF-8') at the end of the line like this:
android_info = input_zip.read("OTA/android-info.txt").decode('UTF-8')
Related
I am receiving this exception while creation of signed apk of my application.
Proguard returned with error code 1. See console
java.io.IOException: Can't read [C:\Users\xx\Desktop\APP\xx\Users\imac\Amit\Workspace\xx\libs\universal-image-loader-1.9.4.jar] (No such file or directory)
at proguard.InputReader.readInput(InputReader.java:230)
at proguard.InputReader.readInput(InputReader.java:200)
at proguard.InputReader.readInput(InputReader.java:178)
at proguard.InputReader.execute(InputReader.java:100)
at proguard.ProGuard.readInput(ProGuard.java:196)
at proguard.ProGuard.execute(ProGuard.java:78)
at proguard.ProGuard.main(ProGuard.java:492)
Caused by: java.io.IOException: No such file or directory
at proguard.io.DirectoryPump.pumpDataEntries(DirectoryPump.java:50)
at proguard.InputReader.readInput(InputReader.java:226)
... 6 more
I've just installed Phonegap in my windows and created a helloWorld application. Now I want to create unsigned apk file for this. But there is no android platform in folder named platforms in the project directory.
That's why I reached this SO link for solution.
Now I'm following one of the answers and trying to execute the command phonegap build android. But it is giving me following errors in cmd.
I've opened this commands as administrator.
Error log:
C:\Users\Kaushal28\Documents\ooo>phonegap build android
[phonegap] executing 'cordova build android ' ...
ANDROID_HOME=C:\Users\Kaushal28\AppData\Local\Android\sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_111
Subproject Path: CordovaLib
Unzipping C:\Users\Kaushal28\.gradle\wrapper\dists\gradle-2.14.1- all\53l0mv9mggp9q5m2ip574m21oh\gradle-2.14.1-all.zip to C:\Users\Kaushal28\.gradle\wrapper\dists\gradle-2.14.1- all\53l0mv9mggp9q5m2ip574m21oh
Exception in thread "main"
java.lang.RuntimeException: java.util.zip.ZipException: error in opening zip file
at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager. java:78)
at org.gradle.wrapper.Install.createDist(Install.java:47)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:129)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:48)
Caused by: java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:219)
at java.util.zip.ZipFile.<init>(ZipFile.java:149)
at java.util.zip.ZipFile.<init>(ZipFile.java:163)
at org.gradle.wrapper.Install.unzip(Install.java:160)
at org.gradle.wrapper.Install.access$400(Install.java:29)
at org.gradle.wrapper.Install$1.call(Install.java:70)
at org.gradle.wrapper.Install$1.call(Install.java:47)
at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)
... 3 more
Error: cmd: Command failed with exit code 1 Error output:
Exception in thread "main" java.lang.RuntimeException: java.util.zip.ZipException: error in opening zip file
at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager. java:78)
at org.gradle.wrapper.Install.createDist(Install.java:47)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:129)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:48)
Caused by: java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:219)
at java.util.zip.ZipFile.<init>(ZipFile.java:149)
at java.util.zip.ZipFile.<init>(ZipFile.java:163)
at org.gradle.wrapper.Install.unzip(Install.java:160)
at org.gradle.wrapper.Install.access$400(Install.java:29)
at org.gradle.wrapper.Install$1.call(Install.java:70)
at org.gradle.wrapper.Install$1.call(Install.java:47)
at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager. java:65)
... 3 more
What is the solution for this? Or I'm doing something wrong?
Thank you :)
My Android gradle build is failing during the ProGuard phase with a duplicate class error for MultiDex$V14.class (see below). I understand what a duplicate class is and I know what MultiDex is but I still don't understand how it's a duplicate.
Questions:
I see one definition is in multidex.jar, of course. How can I tell where the other is defined?
Isn't ProGuard supposed to remove duplicate entries instead of complaining about them?
The "What went wrong" description at the bottom seems unrelated to the duplicate class. Is it?
-
(http://proguard.sourceforge.net/manual/troubleshooting.html#duplicateclass)
Warning: can't write resource [.gitkeep] (Duplicate zip entry [DMMPlaybackBitrateSwitching-1.0.jar:.gitkeep])
...
Warning: can't write resource [.gitkeep] (Duplicate zip entry [DMMDigitalMusicLocatorServiceClient-1.0.jar:.gitkeep])
Exception while processing task
java.io.IOException: Can't write [/Users/fruitman/dev/MusicAndroid-one/build/DigitalMusicAndroidAppOne/DigitalMusicAndroidAppOne-11.0/RHEL5_64/DEV.STD.PTHREAD/build/private/android-gradle/intermediates/classes-proguard/fourfireOS/debug/classes.jar] (Can't read [/Users/fruitman/dev/MusicAndroid-one/build/DigitalMusicAndroidAppOne/DigitalMusicAndroidAppOne-11.0/RHEL5_64/DEV.STD.PTHREAD/build/private/tmp/artifacts/multidex.jar(;;;;;;!META-INF/MANIFEST.MF)] (Duplicate zip entry [multidex.jar:android/support/multidex/MultiDex$V14.class]))
at proguard.OutputWriter.writeOutput(OutputWriter.java:187)
at proguard.OutputWriter.execute(OutputWriter.java:79)
at proguard.ProGuard.writeOutput(ProGuard.java:427)
at proguard.ProGuard.execute(ProGuard.java:175)
at proguard.gradle.ProGuardTask.proguard(ProGuardTask.java:1074)
at com.android.build.gradle.tasks.AndroidProGuardTask.doMinification(AndroidProGuardTask.java:139)
at com.android.build.gradle.tasks.AndroidProGuardTask$1.run(AndroidProGuardTask.java:115)
at com.android.builder.tasks.Job.runTask(Job.java:48)
at com.android.build.gradle.tasks.SimpleWorkQueue$EmptyThreadContext.runTask(SimpleWorkQueue.java:41)
at com.android.builder.tasks.WorkQueue.run(WorkQueue.java:227)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: Cannot read [/Users/fruitman/dev/MusicAndroid-one/build/DigitalMusicAndroidAppOne/DigitalMusicAndroidAppOne-11.0/RHEL5_64/DEV.STD.PTHREAD/build/private/tmp/artifacts/multidex.jar(;;;;;;!META-INF/MANIFEST.MF)] (Duplicate zip entry [multidex.jar:android/support/multidex/MultiDex$V14.class])
at proguard.InputReader.readInput(InputReader.java:188)
at proguard.InputReader.readInput(InputReader.java:158)
at proguard.OutputWriter.writeOutput(OutputWriter.java:176)
... 10 more
Caused by: java.io.IOException: Duplicate zip entry [multidex.jar:android/support/multidex/MultiDex$V14.class]
at proguard.io.JarWriter.getOutputStream(JarWriter.java:138)
at proguard.io.FilteredDataEntryWriter.getOutputStream(FilteredDataEntryWriter.java:105)
at proguard.io.FilteredDataEntryWriter.getOutputStream(FilteredDataEntryWriter.java:105)
at proguard.io.FilteredDataEntryWriter.getOutputStream(FilteredDataEntryWriter.java:92)
at proguard.io.ClassRewriter.read(ClassRewriter.java:68)
at proguard.io.FilteredDataEntryReader.read(FilteredDataEntryReader.java:87)
at proguard.io.FilteredDataEntryReader.read(FilteredDataEntryReader.java:87)
at proguard.io.FilteredDataEntryReader.read(FilteredDataEntryReader.java:87)
at proguard.io.JarReader.read(JarReader.java:65)
at proguard.io.DirectoryPump.readFiles(DirectoryPump.java:65)
at proguard.io.DirectoryPump.pumpDataEntries(DirectoryPump.java:53)
at proguard.InputReader.readInput(InputReader.java:184)
... 12 more
:DigitalMusicAndroidAppOne:shrinkFourFireOSDebugMultiDexComponents FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':DigitalMusicAndroidAppOne:shrinkFourFireOSDebugMultiDexComponents'.
> java.io.IOException: Can't read [/Users/fruitman/dev/MusicAndroid-one/build/DigitalMusicAndroidAppOne/DigitalMusicAndroidAppOne-11.0/RHEL5_64/DEV.STD.PTHREAD/build/private/android-gradle/intermediates/classes-proguard/fourfireOS/debug/classes.jar] (Can't process class [com/company/communication/ir/ParcelableIRServiceEndpoint.class] (Unexpected end of ZLIB input stream))
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 47.07 secs
BUILD FAILED
after two days ,i find the question ,in the lib..multidex 1.0.1,,but dependencies is 1.0.0,so just kill the lib,it's work now
I am trying to import this physical web android project into my android studio, but getting this error :
Error:Unable to find module with Gradle path ':libs' (needed by module 'app'.)
I haven't changed anything in the project.
Please help.
UPDATE :
If I run ./gradelw ---stacktrace installDebug, I am getting this error :
Unknown source file : UNEXPECTED TOP-LEVEL EXCEPTION:
Unknown source file : com.android.dx.cf.iface.ParseException: bad class file magic (cafebabe) or version (0034.0000)
Unknown source file : at com.android.dx.cf.direct.DirectClassFile.parse0(DirectClassFile.java:472)
Unknown source file : at com.android.dx.cf.direct.DirectClassFile.parse(DirectClassFile.java:406)
Unknown source file : at com.android.dx.cf.direct.DirectClassFile.parseToInterfacesIfNecessary(DirectClassFile.java:388)
Unknown source file : at com.android.dx.cf.direct.DirectClassFile.getMagic(DirectClassFile.java:251)
Unknown source file : at com.android.dx.command.dexer.Main.processClass(Main.java:704)
Unknown source file : at com.android.dx.command.dexer.Main.processFileBytes(Main.java:673)
Unknown source file : at com.android.dx.command.dexer.Main.access$300(Main.java:83)
Unknown source file : at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:602)
Unknown source file : at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284)
Unknown source file : at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)
Unknown source file : at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)
Unknown source file : at com.android.dx.command.dexer.Main.processOne(Main.java:632)
Unknown source file : at com.android.dx.command.dexer.Main.processAllFiles(Main.java:510)
Unknown source file : at com.android.dx.command.dexer.Main.runMonoDex(Main.java:280)
Unknown source file : at com.android.dx.command.dexer.Main.run(Main.java:246)
Unknown source file : at com.android.dx.command.dexer.Main.main(Main.java:215)
Unknown source file : at com.android.dx.command.Main.main(Main.java:106)
Unknown source file : ...while parsing org/physical_web/collection/BitmapRequest$RequestCallback.class
Unknown source file : 1 error; aborting
Why it's having problem with RequestCallback class, I haven't even touched the code after cloning.
As you can see in https://github.com/google/physical-web/blob/master/android/PhysicalWeb/settings.gradle it tries to import ../../java/libs as project :libs, so you have to make sure it is where expected. If it is, run with -i or -d to get more info about what is going on and potentially find your problem.
When i try to run my application it gives me this error.. But why ?
[ERROR] Exception occurred while building Android project:
[ERROR] Traceback (most recent call last):
[ERROR] File "C:\Users\ThomasBolander\AppData\Roaming\Titanium\mobilesdk\win32\2.1.2.GA\android\builder.py", line 2243, in <module>
[ERROR] s.build_and_run(True, avd_id, device_args=device_args)
[ERROR] File "C:\Users\ThomasBolander\AppData\Roaming\Titanium\mobilesdk\win32\2.1.2.GA\android\builder.py", line 2068, in build_and_run
[ERROR] launched, launch_failed = self.package_and_deploy()
[ERROR] File "C:\Users\ThomasBolander\AppData\Roaming\Titanium\mobilesdk\win32\2.1.2.GA\android\builder.py", line 1585, in package_and_deploy
[ERROR] unsigned_apk = self.create_unsigned_apk(ap_)
[ERROR] File "C:\Users\ThomasBolander\AppData\Roaming\Titanium\mobilesdk\win32\2.1.2.GA\android\builder.py", line 1447, in create_unsigned_apk
[ERROR] resources_zip = zipfile.ZipFile(resources_zip_file)
[ERROR] File "C:\Users\ThomasBolander\AppData\Local\Titanium Studio\plugins\com.appcelerator.titanium.python.win32_1.0.0.1338515509\python\lib\zipfile.py", line 671, in __init__
[ERROR] self.fp = open(file, modeDict[mode])
[ERROR] IOError: [Errno 2] No such file or directory: 'C:\\Users\\ThomasBolander\\Dropbox\\Praktikanten\\Apps\\Fritidsjob.dk Android Standard\\build\\android\\bin\\app.ap_'
Try the following:
Make sure that if you are using localization files, there are no errors in those.
If you are using any kind of module, make sure that module is compatible with your SDK.
Clean your solution and then run the project again.