当我试图通过使用生成android apk时./gradlew installRelease,我在控制台中收到此错误:
~/React-Native/mockingbird/android/app/build/intermediates/res/merged/release/drawable-mdpi-v4/src_resources_img_loading.gif: error: Duplicate file.
~/React-Native/mockingbird/android/app/build/intermediates/res/merged/release/drawable-mdpi/src_resources_img_loading.gif: Original is here. The version qualifier may be implied.
Run Code Online (Sandbox Code Playgroud)
我尝试Build->Clean Project通过Android Studio ./gradlew installRelease再次运行; 它也没用.
此外,我尝试删除该build文件夹,但它也没有帮助.
我正在关注这篇文章和M Penades建立VoIP通知演示的答案.我可以使用注册通知,didRegisterUserNotificationSettings并可以从中获取voip令牌didUpdatePushCredentials.
但是当我使用休斯顿模拟向我的设备发送通知时,我可以1 push notification sent successfully从控制台获取消息但在设备端没有操作或日志.似乎didReceiveIncomingPushWithPayload永远不会被调用.
PS我正在使用Xcode 7.3,iPhone 6(iOS 9.3)和iPad Mini(iOS 9.3)进行开发.分布式Ad Hoc ipa用于安装.
这里的代码发布了.
import UIKit
import PushKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
let voipRegistry = PKPushRegistry(queue: dispatch_get_main_queue())
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
// Override point for customization after application launch.
//Enable all notification type. VoIP Notifications don't present a UI but we will use …Run Code Online (Sandbox Code Playgroud)