رفتن به مطلب
مرجع رسمی سی‌پلاس‌پلاس ایران

androidWithQt

کاربـــر عـــــادی
  • تعداد ارسال ها

    5
  • تاریخ عضویت

اعتبار در سایت

0 خوب

درباره androidWithQt

  • تاریخ تولد تعیین نشده

موقعیت

  • شهر
    مشهد
  1. androidWithQt

    ممنون از جوابتون ولی من باید حتما از فایربیس استفاده کنم چون بک اند اینجوری پیاده سازی شده. فقط برای ورود و یکی دو قسمت رجیستر نیاز به فیلتر شکن هست ولی برای نوتیف امدن و cloudemessaging برای اپ مشکلی نیست فیلترشکن لازم نداره ممنون میشم اگر کسی میتونه کمک کنه
  2. androidWithQt

    سلام من سعی داشتم فایربیس رو روی کیوت انجام بدم ولی نشد.من مراحل زیر رو انجام دادم ولی هرچی تلاش می کنم به نتیجه نمی رسم در سایت console.firebase.google.com ثبت نام کردم و یک پروژه ایجاد کردم و فایل json رو به قسمت اندروید پروژه اضافه کردم. خطوط زیر رو به .pro اضافه کردم QTFIREBASE_CONFIG += analytics messaging auth # Includes QtFirebase: include(./extensions/QtFirebase/qtfirebase.pri) QTFIREBASE_SDK_PATH = C:/firebase_cpp_sdk خطوط زیر رو به build.gradle اضافه کردم: dependencies { classpath 'com.android.tools.build:gradle:3.2.0' classpath 'com.google.gms:google-services:4.2.0' } project.ext { // Configure the Firebase C++ SDK location. firebase_cpp_sdk_dir = System.getProperty('firebase_cpp_sdk.dir') firebaseSdkUsed = 'system property firebase_cpp_sdk.dir' if (firebase_cpp_sdk_dir == null || firebase_cpp_sdk_dir.isEmpty()) { firebase_cpp_sdk_dir = System.getenv('FIREBASE_CPP_SDK_DIR') firebaseSdkUsed = 'system env variable FIREBASE_CPP_SDK_DIR' if (firebase_cpp_sdk_dir == null || firebase_cpp_sdk_dir.isEmpty()) { if ((new File('firebase_cpp_sdk')).exists()) { firebase_cpp_sdk_dir = 'firebase_cpp_sdk' } else { throw new StopActionException( 'firebase_cpp_sdk.dir property or the FIREBASE_CPP_SDK_DIR ' + 'environment variable must be set to reference the Firebase C++ ' + 'SDK install directory. This is used to configure static library ' + 'and C/C++ include paths for the SDK.' ) } } } if (!(new File(firebase_cpp_sdk_dir)).exists()) { throw new StopActionException( sprintf('Firebase C++ SDK directory %s does not exist', firebase_cpp_sdk_dir) ) } println 'QtFirebase using Firebase C++ SDK located in ' + firebase_cpp_sdk_dir + ' (from ' + firebaseSdkUsed + ')' // Check the NDK location using the same configuration options as the // experimental Gradle plug-in. def ndkDir = android.ndkDirectory ndkUsed = 'android.ndkDirectory' if (ndkDir == null || !ndkDir.exists()) { ndkDir = new File(System.getProperty('ndk_dir')) ndkUsed = 'system property ndk_dir' } if (ndkDir == null || !ndkDir.exists()) { ndkDir = new File(System.getenv('ANDROID_NDK_HOME')) ndkUsed = 'system env variable ANDROID_NDK_HOME' } if (ndkDir == null || !ndkDir.exists()) { throw new StopActionException( 'Android NDK directory should be specified using the ndkDir ' + 'property or ANDROID_NDK_HOME environment variable.' ) } println 'QtFirebase (Firebase C++ SDK) using Android NDK located in ' + ndkDir + ' (from ' + ndkUsed + ')' } repositories { flatDir { dirs project.ext.firebase_cpp_sdk_dir + "/libs/android" } } dependencies { implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar']) implementation 'com.android.support:appcompat-v7:28.0.0' implementation 'com.android.support:multidex:1.0.3' implementation 'com.google.android.gms:play-services-places:16.0.0' implementation 'com.google.android.gms:play-services-maps:16.0.0' implementation 'com.google.android.gms:play-services-base:16.1.0' implementation 'com.google.firebase:firebase-core:16.0.7' implementation 'com.google.firebase.messaging.cpp:firebase_messaging_cpp@aar' implementation 'com.google.firebase:firebase-messaging:17.4.0' } apply plugin: 'com.google.gms.google-services' com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true خط زیر رو به gradle.properties : systemProp.firebase_cpp_sdk.dir=C:/firebase_cpp_sdk در اخر هم خط زیر رو به main.qml : import QtFirebase 1.0 من میدونم روی گیت هاب یک پروژه هست ولی برای کامپایل اندروید ارور میده و دستکاپش هم که بدرد نمی خوره. پیشاپیش ممنون
  3. سلام روز بخیر من میخوام توی اپلیکیشنم مثلا گالری رو باز کنم و باید اولش permission بگیرم. وقتی برای بار اول اینکارو می کنم و صفحه ی اجازه گرفتن بالا میاد و من میزنم اجازه دارد برنامه crash می کنه ولی اگه خارج شم و دوباره وارد شم گالری رو باز می کنه.جالب اینه که حالا اگر من مدل permission دیگه مثلا برای تماس تلفنی رو حالا بزنم بدون مشکل انجام میشه حتی برای اولین بار میخواستم ببینم کسی میدونه مشکل کجاست؟ ورژنsdk :24.4.1 اندروید گوشی 6 برایgalaxygrandprime+ target api:api28 android 9 توی android manifest هم اضافه کردم permission هارو
  4. androidWithQt

    درصورتیکه ورژن sdk و ndk Android settings are OK. (SDK Version: 24.4.1, NDK Version: 18.1.5063045)باشه خطای زیر رو بهم میده: A problem occurred configuring root project 'android-build'. > Failed to install the following Android SDK packages as some licences have not been accepted. build-tools;28.0.2 Android SDK Build-Tools 28.0.2 To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager. Alternatively, to transfer the license agreements from one workstation to another, see Exporting licenses - Android Studio Project Site Using Android SDK: C:\Users\j1\Desktop\sdk1 * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at Gradle | Search for Help with Gradle
  5. androidWithQt

    سلام.من اولین باره میخوام تو کیوت خروجی اندروید بگیرم و به خطای زیر خوردم: androideabi/bin\ld: error: cannot find -lc++ clang++: error: linker command failed with exit code 1 (use -v to see invocation) در صورتیکه ورژن sdk و ndk Android settings are OK. (SDK Version: 24.4.1, NDK Version: 20.0.5594570) باشه و خطای زیر A problem occurred configuring root project 'android-build'. > Failed to install the following Android SDK packages as some licences have not been accepted. build-tools;28.0.2 Android SDK Build-Tools 28.0.2 To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager. Alternatively, to transfer the license agreements from one workstation to another, see Exporting licenses - Android Studio Project Site Using Android SDK: C:\Users\j1\Desktop\sdk1 * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at Gradle | Search for Help with Gradle درصورتیکه ورژن sdk و ndk Android settings are OK. (SDK Version: 24.4.1, NDK Version: 18.1.5063045) باشه من از کیوت 5.12.1 استفاده می کنم
×
×
  • جدید...