musikit
December 14, 2012, 3:20am
1
Hello,
one API we have to use on our project expects us to be able to open android dialog boxs (via onCreateDialog()) we have used unity4 to export as an eclipse project and have properly inserted our own code, when onCreateDialog is properly called however to dialog does not appear over the unity display.
does anyone have any hint on how to accomplish this?
Thank you.
musikit
December 14, 2012, 7:20am
2
Hello,
I found out my bug and am able to make a dialog via oncreatedialog over the unity window. however now a new problem seems to be occuring. it appears as if the project generated from eclipse and the apk generated by unity3d directly don’t include all the proper files. i can check the apks generated by eclipse and myself and there is a large file difference. anyone experience this before? could provide any hints?
musikit
December 14, 2012, 8:49am
3
hello,
performing the following steps
file->build settings
click "player settings
check “split application binary”
check “export eclipse project”
click “export”
open eclipse
import project
build project
run/debug project
i get the following errors
If anyone has seen this before i would appreciate any assistance.
04-06 10:48:11.620: E/Unity(3306): The file '/data/app/com.mycompany.mygame-2.apk/assets/bin/Data/sharedassets0.assets' is corrupted! Remove it and launch unity again!
04-06 10:48:11.620: E/Unity(3306): [Position out of bounds! 114880140 > 112875612]
04-06 10:48:11.620: E/Unity(3306):
04-06 10:48:11.620: E/Unity(3306): (Filename: ./Runtime/Serialize/CacheWrap.cpp Line: 269)
04-06 10:48:11.620: E/Unity(3306): Mismatched serialization in the builtin class 'AudioClip'. (Read 32 bytes but expected 36 bytes)
04-06 10:48:11.620: E/Unity(3306):
04-06 10:48:11.620: E/Unity(3306): (Filename: ./Runtime/Serialize/SerializedFile.cpp Line: 1148)
04-06 10:48:12.180: E/Unity(3306): The file '/data/app/com.mycompany.mygame-2.apk/assets/bin/Data/sharedassets0.assets' is corrupted! Remove it and launch unity again!
04-06 10:48:12.180: E/Unity(3306): [Position out of bounds! 113784866 > 112880616]
04-06 10:48:12.180: E/Unity(3306):
04-06 10:48:12.180: E/Unity(3306): (Filename: ./Runtime/Serialize/CacheWrap.cpp Line: 269)
04-06 10:48:12.180: E/Unity(3306): Mismatched serialization in the builtin class 'AudioClip'. (Read 36 bytes but expected 40 bytes)
04-06 10:48:12.180: E/Unity(3306):
04-06 10:48:12.180: E/Unity(3306): (Filename: ./Runtime/Serialize/SerializedFile.cpp Line: 1148)
04-06 10:48:12.450: E/Unity(3306): The file '/data/app/com.mycompany.mygame-2.apk/assets/bin/Data/sharedassets0.assets' is corrupted! Remove it and launch unity again!
04-06 10:48:12.450: E/Unity(3306): [Position out of bounds! 114450232 > 113754516]
04-06 10:48:12.450: E/Unity(3306):
04-06 10:48:12.450: E/Unity(3306): (Filename: ./Runtime/Serialize/CacheWrap.cpp Line: 269)
04-06 10:48:12.450: E/Unity(3306): Mismatched serialization in the builtin class 'AudioClip'. (Read 32 bytes but expected 36 bytes)
04-06 10:48:12.450: E/Unity(3306):
04-06 10:48:12.450: E/Unity(3306): (Filename: ./Runtime/Serialize/SerializedFile.cpp Line: 1148)
04-06 10:48:12.460: E/Unity(3306): The file '/data/app/com.mycompany.mygame-2.apk/assets/bin/Data/sharedassets0.assets' is corrupted! Remove it and launch unity again!
04-06 10:48:12.460: E/Unity(3306): [Position out of bounds! 115896173 > 113754556]
04-06 10:48:12.460: E/Unity(3306):
04-06 10:48:12.460: E/Unity(3306): (Filename: ./Runtime/Serialize/CacheWrap.cpp Line: 269)
04-06 10:48:12.460: E/Unity(3306): Mismatched serialization in the builtin class 'AudioClip'. (Read 32 bytes but expected 36 bytes)
04-06 10:48:12.460: E/Unity(3306):
04-06 10:48:12.460: E/Unity(3306): (Filename: ./Runtime/Serialize/SerializedFile.cpp Line: 1148)
04-06 10:48:13.050: E/Unity(3306): The file '/data/app/com.mycompany.mygame-2.apk/assets/bin/Data/sharedassets0.assets' is corrupted! Remove it and launch unity again!
04-06 10:48:13.050: E/Unity(3306): [Position out of bounds! 114733452 > 113754596]
04-06 10:48:13.050: E/Unity(3306):
04-06 10:48:13.050: E/Unity(3306): (Filename: ./Runtime/Serialize/CacheWrap.cpp Line: 269)
04-06 10:48:13.050: E/Unity(3306): Mismatched serialization in the builtin class 'AudioClip'. (Read 32 bytes but expected 36 bytes)
04-06 10:48:13.050: E/Unity(3306):
04-06 10:48:13.050: E/Unity(3306): (Filename: ./Runtime/Serialize/SerializedFile.cpp Line: 1148)
04-06 10:48:13.310: E/Unity(3306): The file '/data/app/com.mycompany.mygame-2.apk/assets/bin/Data/sharedassets0.assets' is corrupted! Remove it and launch unity again!
04-06 10:48:13.310: E/Unity(3306): [Position out of bounds! 116077147 > 113862804]
04-06 10:48:13.310: E/Unity(3306):
04-06 10:48:13.310: E/Unity(3306): (Filename: ./Runtime/Serialize/CacheWrap.cpp Line: 269)
04-06 10:48:13.310: E/Unity(3306): Mismatched serialization in the builtin class 'AudioClip'. (Read 32 bytes but expected 36 bytes)
04-06 10:48:13.310: E/Unity(3306):
04-06 10:48:13.310: E/Unity(3306): (Filename: ./Runtime/Serialize/SerializedFile.cpp Line: 1148)
04-06 10:48:13.930: E/Unity(3306): The file '/data/app/com.mycompany.mygame-2.apk/assets/bin/Data/sharedassets0.assets' is corrupted! Remove it and launch unity again!
04-06 10:48:13.930: E/Unity(3306): [Position out of bounds! 116131280 > 114461956]
04-06 10:48:13.930: E/Unity(3306):
04-06 10:48:13.930: E/Unity(3306): (Filename: ./Runtime/Serialize/CacheWrap.cpp Line: 269)
04-06 10:48:13.930: E/Unity(3306): Mismatched serialization in the builtin class 'AudioClip'. (Read 32 bytes but expected 36 bytes)
04-06 10:48:13.930: E/Unity(3306):
04-06 10:48:13.930: E/Unity(3306): (Filename: ./Runtime/Serialize/SerializedFile.cpp Line: 1148)
04-06 10:48:14.410: E/Unity(3306): The file '/data/app/com.mycompany.mygame-2.apk/assets/bin/Data/sharedassets0.assets' is corrupted! Remove it and launch unity again!
04-06 10:48:14.410: E/Unity(3306): [Position out of bounds! 116234977 > 115255076]
04-06 10:48:14.410: E/Unity(3306):
04-06 10:48:14.410: E/Unity(3306): (Filename: ./Runtime/Serialize/CacheWrap.cpp Line: 269)
04-06 10:48:14.410: E/Unity(3306): Mismatched serialization in the builtin class 'AudioClip'. (Read 32 bytes but expected 36 bytes)
04-06 10:48:14.410: E/Unity(3306):
04-06 10:48:14.410: E/Unity(3306): (Filename: ./Runtime/Serialize/SerializedFile.cpp Line: 1148)
04-06 10:48:14.680: E/Unity(3306): The file '/data/app/com.mycompany.mygame-2.apk/assets/bin/Data/sharedassets0.assets' is corrupted! Remove it and launch unity again!
04-06 10:48:14.680: E/Unity(3306): [Position out of bounds! 118021080 > 115484908]
04-06 10:48:14.680: E/Unity(3306):
04-06 10:48:14.680: E/Unity(3306): (Filename: ./Runtime/Serialize/CacheWrap.cpp Line: 269)
04-06 10:48:14.680: E/Unity(3306): Mismatched serialization in the builtin class 'AudioClip'. (Read 32 bytes but expected 36 bytes)
04-06 10:48:14.680: E/Unity(3306):
04-06 10:48:14.680: E/Unity(3306): (Filename: ./Runtime/Serialize/SerializedFile.cpp Line: 1148)
04-06 10:48:14.950: D/dalvikvm(254): GC_EXPLICIT freed 1093K, 37% free 14844K/23303K, paused 34ms+78ms
04-06 10:48:15.370: E/Unity(3306): The file '/data/app/com.mycompany.mygame-2.apk/assets/bin/Data/sharedassets0.assets' is corrupted! Remove it and launch unity again!
04-06 10:48:15.370: E/Unity(3306): [Position out of bounds! 119810150 > 118901004]
04-06 10:48:15.370: E/Unity(3306):
04-06 10:48:15.370: E/Unity(3306): (Filename: ./Runtime/Serialize/CacheWrap.cpp Line: 260)
04-06 10:48:15.370: E/Unity(3306): The file '/data/app/com.mycompany.mygame-2.apk/assets/bin/Data/sharedassets0.assets' is corrupted! Remove it and launch unity again!
04-06 10:48:15.370: E/Unity(3306): [Position out of bounds! 119810150 > 116311836]
04-06 10:48:15.370: E/Unity(3306):
04-06 10:48:15.370: E/Unity(3306): (Filename: ./Runtime/Serialize/CacheWrap.cpp Line: 269)
04-06 10:48:15.380: E/Unity(3306): Mismatched serialization in the builtin class 'AudioClip'. (Read 40 bytes but expected 44 bytes)
04-06 10:48:15.380: E/Unity(3306):
04-06 10:48:15.380: E/Unity(3306): (Filename: ./Runtime/Serialize/SerializedFile.cpp Line: 1148)
04-06 10:48:16.300: E/Unity(3306): The file '/data/app/com.mycompany.mygame-2.apk/assets/bin/Data/sharedassets0.assets' is corrupted! Remove it and launch unity again!
04-06 10:48:16.300: E/Unity(3306): [Position out of bounds! 116819716 > 116311876]
04-06 10:48:16.300: E/Unity(3306):
04-06 10:48:16.300: E/Unity(3306): (Filename: ./Runtime/Serialize/CacheWrap.cpp Line: 269)
04-06 10:48:16.300: E/Unity(3306): Mismatched serialization in the builtin class 'AudioClip'. (Read 32 bytes but expected 36 bytes)
04-06 10:48:16.300: E/Unity(3306):
04-06 10:48:16.300: E/Unity(3306): (Filename: ./Runtime/Serialize/SerializedFile.cpp Line: 1148)
04-06 10:48:16.300: E/Unity(3306): The file '/data/app/com.mycompany.mygame-2.apk/assets/bin/Data/sharedassets0.assets' is corrupted! Remove it and launch unity again!
04-06 10:48:16.300: E/Unity(3306): [Position out of bounds! 116943374 > 116540116]
04-06 10:48:16.300: E/Unity(3306):
04-06 10:48:16.300: E/Unity(3306): (Filename: ./Runtime/Serialize/CacheWrap.cpp Line: 269)
04-06 10:48:16.300: E/Unity(3306): Mismatched serialization in the builtin class 'AudioClip'. (Read 32 bytes but expected 36 bytes)
04-06 10:48:16.300: E/Unity(3306):
04-06 10:48:16.300: E/Unity(3306): (Filename: ./Runtime/Serialize/SerializedFile.cpp Line: 1148)
04-06 10:48:16.310: E/Unity(3306): The file '/data/app/com.mycompany.mygame-2.apk/assets/bin/Data/sharedassets0.assets' is corrupted! Remove it and launch unity again!
04-06 10:48:16.310: E/Unity(3306): [Position out of bounds! 119139294 > 118901004]
04-06 10:48:16.310: E/Unity(3306):
04-06 10:48:16.310: E/Unity(3306): (Filename: ./Runtime/Serialize/CacheWrap.cpp Line: 260)
04-06 10:48:16.310: E/Unity(3306): The file '/data/app/com.mycompany.mygame-2.apk/assets/bin/Data/sharedassets0.assets' is corrupted! Remove it and launch unity again!
04-06 10:48:16.310: E/Unity(3306): [Position out of bounds! 119139294 > 116869780]
04-06 10:48:16.310: E/Unity(3306):
04-06 10:48:16.310: E/Unity(3306): (Filename: ./Runtime/Serialize/CacheWrap.cpp Line: 269)
04-06 10:48:16.310: E/Unity(3306): Mismatched serialization in the builtin class 'AudioClip'. (Read 32 bytes but expected 36 bytes)
04-06 10:48:16.310: E/Unity(3306):
04-06 10:48:16.310: E/Unity(3306): (Filename: ./Runtime/Serialize/SerializedFile.cpp Line: 1148)
04-06 10:48:16.920: E/Unity(3306): The file '/data/app/com.mycompany.mygame-2.apk/assets/bin/Data/sharedassets0.assets' is corrupted! Remove it and launch unity again!
04-06 10:48:16.920: E/Unity(3306): [Position out of bounds! 117542730 > 116869820]
04-06 10:48:16.920: E/Unity(3306):
04-06 10:48:16.920: E/Unity(3306): (Filename: ./Runtime/Serialize/CacheWrap.cpp Line: 269)
04-06 10:48:16.920: E/Unity(3306): Mismatched serialization in the builtin class 'AudioClip'. (Read 32 bytes but expected 36 bytes)
04-06 10:48:16.920: E/Unity(3306):
04-06 10:48:16.920: E/Unity(3306): (Filename: ./Runtime/Serialize/SerializedFile.cpp Line: 1148)
04-06 10:48:17.110: E/Unity(3306): The file '/data/app/com.mycompany.mygame-2.apk/assets/bin/Data/sharedassets0.assets' is corrupted! Remove it and launch unity again!
04-06 10:48:17.110: E/Unity(3306): [Position out of bounds! 119316624 > 118901004]
04-06 10:48:17.110: E/Unity(3306):
04-06 10:48:17.110: E/Unity(3306): (Filename: ./Runtime/Serialize/CacheWrap.cpp Line: 260)
04-06 10:48:17.110: E/Unity(3306): The file '/data/app/com.mycompany.mygame-2.apk/assets/bin/Data/sharedassets0.assets' is corrupted! Remove it and launch unity again!
04-06 10:48:17.110: E/Unity(3306): [Position out of bounds! 119316624 > 117190052]
04-06 10:48:17.110: E/Unity(3306):
04-06 10:48:17.110: E/Unity(3306): (Filename: ./Runtime/Serialize/CacheWrap.cpp Line: 269)
04-06 10:48:17.110: E/Unity(3306): Mismatched serialization in the builtin class 'AudioClip'. (Read 32 bytes but expected 36 bytes)
04-06 10:48:17.110: E/Unity(3306):
04-06 10:48:17.110: E/Unity(3306): (Filename: ./Runtime/Serialize/SerializedFile.cpp Line: 1148)
04-06 10:48:17.670: E/Unity(3306): The file '/data/app/com.mycompany.mygame-2.apk/assets/bin/Data/sharedassets0.assets' is corrupted! Remove it and launch unity again!
04-06 10:48:17.670: E/Unity(3306): [Position out of bounds! 117663570 > 117190092]
04-06 10:48:17.670: E/Unity(3306):
04-06 10:48:17.670: E/Unity(3306): (Filename: ./Runtime/Serialize/CacheWrap.cpp Line: 269)
04-06 10:48:17.670: E/Unity(3306): Mismatched serialization in the builtin class 'AudioClip'. (Read 32 bytes but expected 36 bytes)
04-06 10:48:17.670: E/Unity(3306):
04-06 10:48:17.670: E/Unity(3306): (Filename: ./Runtime/Serialize/SerializedFile.cpp Line: 1148)
04-06 10:48:17.680: E/Unity(3306): The file '/data/app/com.mycompany.mygame-2.apk/assets/bin/Data/sharedassets0.assets' is corrupted! Remove it and launch unity again!
04-06 10:48:17.680: E/Unity(3306): [Position out of bounds! 118232250 > 117623852]
04-06 10:48:17.680: E/Unity(3306):
04-06 10:48:17.680: E/Unity(3306): (Filename: ./Runtime/Serialize/CacheWrap.cpp Line: 269)
04-06 10:48:17.680: E/Unity(3306): Mismatched serialization in the builtin class 'AudioClip'. (Read 32 bytes but expected 36 bytes)
04-06 10:48:17.680: E/Unity(3306):
04-06 10:48:17.680: E/Unity(3306): (Filename: ./Runtime/Serialize/SerializedFile.cpp Line: 1148)
musikit
December 15, 2012, 1:19am
4
It seems that if you export to an eclipse project that it doesnt generate an obb file. if i try to use the obb generated by the normal build process all i get is errors… does anyone have experience with this?
devin8
March 31, 2013, 7:39pm
5
I am running into same issue.
What I am doing is I create the OBB using normal build process. Then I export the eclipse project by setting split application binary to true.
Then I export the apk from eclipse and install on my phone. The OBB is also there on the right location. But the application fails to load scenes from the OBB file saying the scene was not added to build settings.
If I use the apk generated from Unity, it runs fine but the the one from eclipse doesn’t.
I am signing the apk from both Unity and Eclipse using the same key.
steps to resolve:
1 check “export eclipse project”
2. click “export”
3. open eclipse
4. import project
5 create a jar file by eclipse
6 copy jar file to Assets\Plugins\Android\libs
7 Unity check “split application binary”
8 Build and Run