Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

插件在2017.2.0上面编译不了apk。直接下载的工程也不行 #14

Open
dalijianjiao opened this issue Nov 23, 2017 · 8 comments

Comments

@dalijianjiao
Copy link

插件在2017.2.0上面编译不了apk。直接下载的工程也不行

@lhw5123
Copy link
Contributor

lhw5123 commented Nov 23, 2017

我这用 2017.2.0f3,测试是没问题的。你那编译不了 apk,具体报的什么错。

@dalijianjiao
Copy link
Author

CommandInvokationFailure: Unable to merge android manifests. See the Console for more details.
C:\Program Files\Java\jdk1.8.0_111\bin\java.exe -Xmx2048M -Dcom.android.sdkmanager.toolsdir="G:/AndroidSdk\tools" -Dfile.encoding=UTF8 -jar "E:\SoftWear\Unity2017_2_0\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar" -

stderr[

]
stdout[
Warning: [Temp\StagingArea\AndroidManifest-main.xml:100, E:\all\trunk\Code\Client\Temp\StagingArea\android-libraries\unity-android-resources\AndroidManifest.xml:1] Main manifest has but library uses targetSdkVersion='26'
]

@lhw5123
Copy link
Contributor

lhw5123 commented Nov 23, 2017

按照提示,把你应用的 targetSdkVersion 也改成 26 就行了。

@dalijianjiao
Copy link
Author

不可能设置程26啊,那是安卓8.0了。而且也设置不了26.最多也就是25,另外如果我把res目录删掉,然后把minifest里面的相关引用去掉,就可以编译过了

@lhw5123
Copy link
Contributor

lhw5123 commented Nov 23, 2017

试下在 AndroidManifest.xml 里添加 <uses-sdk android:targetSdkVersion="x"> 来设置。

@dalijianjiao
Copy link
Author

image
运行报这个错误,方便给个Q么?

@dalijianjiao
Copy link
Author

另外建议一下IOS,能否不要修改UnityAppController.mm的,每次输出都要修改一遍..还是很麻烦

@dalijianjiao
Copy link
Author

dalijianjiao commented Dec 4, 2017

Hi,按照文档,在ios下面加上了对应的内容,运行出现异常。2017-12-04 22:00:20.186440+0800 zhouyou[20941:3547008] pauseAdArray: 2
2017-12-04 22:00:20.776545+0800 zhouyou[20941:3547008] [Bugly] Trapped uncaught exception 'NSInvalidArgumentException', reason: '*** +[NSJSONSerialization dataWithJSONObject:options:error:]: Invalid top-level type in JSON write'
(
0 CoreFoundation 0x000000018662aff8 + 148
1 libobjc.A.dylib 0x000000018508c538 objc_exception_throw + 56
2 CoreFoundation 0x000000018662af28 + 0
3 Foundation 0x00000001871a5dd4 + 272
4 zhouyou 0x0000000100ce089c APNativeJSONData + 60
5 zhouyou 0x0000000100ce2ba0 -[JPushUnityInstnce networkDidRecievePushNotification:] + 156
6 CoreFoundation 0x00000001865c55f4 + 20
7 CoreFoundation 0x00000001865c4d08 + 400
8 CoreFoundation 0x00000001865c4a84 + 60
9 CoreFoundation 0x00000001866337a8 + 1412
10 CoreFoundation 0x000000018650895c _CFXNotificationPost + 376
11 Foundation 0x000000018701a930 + 68
12 zhouyou 0x00000001000dc5d4 -[UnityAppController jpushNotificationCenter:willPresentNotification:withCompletionHandler:] + 336
13 zhouyou 0x0000000100f6ca1c -[JPUSHService userNotificationCenter:willPresentNotification:withCompletionHandler:] + 252
14 UIKit 0x000000018c9e7e68 + 3584
15 UIKit 0x000000018c9d5cc8 + 132
16 FrontBoardServices 0x00000001881d3884 + 36
17 FrontBoardServices 0x00000001881d36f0 + 176

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants