我在使用Fastlane和Travis Ci建立Flutter项目时遇到问题。这是通过构建日志:
https://api.travis-ci.com/v3/job/159330691/log.txt?log.token=TsItdA2SM5zf0RDFlXZydg
本地构建不是问题。似乎我错过了要安装的东西ect。从昨天开始我一直在为此苦苦挣扎,请帮助我:)。 共有30多个此类错误:
/home/litmanen/test/UI/gamecontroller.cpp:256: error: no matching function for call to ?QPropertyAnimation::QPropertyAnimation(Hexagon*&, const char [6])?
QPropertyAnimation* animation = new QPropertyAnimation(_Tilemap.at(tileCoord)->hexagon_, "brush");
我不知道该怎么解决。
这是我的travis.yml
/home/travis/build/HerrNiklasRaab/hapii2/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java:5: error: package io.flutter.plugins.firebaseauth does not exist
import io.flutter.plugins.firebaseauth.FirebaseAuthPlugin;
我的Fastfile:
matrix:
include:
- os: linux
language: android
licenses:
- 'android-sdk-preview-license-.+'
- 'android-sdk-license-.+'
- 'google-gdk-license-.+'
android:
components:
- tools
- platform-tools
- build-tools-28.0.3
- android-27
- extra-android-m2repository
- extra-google-m2repository
- extra-google-android-support
install:
- cd android
- bundle install
script:
- echo "flutter.sdk=../../flutter/" >> local.properties
- bundle exec fastlane beta
before_install:
- openssl aes-256-cbc -K $encrypted_94197833ced1_key -iv $encrypted_94197833ced1_iv
-in secrets.tar.enc -out secrets.tar -d
- tar xvf secrets.tar
- gem install bundler
- git clone https://github.com/flutter/flutter.git -b beta --depth 1
- yes | sdkmanager "platforms;android-27"
我在模块级别的成绩:
# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
#
# For a list of all available actions, check out
#
# https://docs.fastlane.tools/actions
#
# For a list of all available plugins, check out
#
# https://docs.fastlane.tools/plugins/available-plugins
#
# Uncomment the line if you want fastlane to automatically update itself
# update_fastlane
default_platform(:android)
platform :android do
desc "Runs all the tests"
lane :test do
gradle(task: "test")
end
desc "Submit a new Beta Build to Crashlytics Beta"
lane :beta do
gradle(task: "clean assembleRelease")
crashlytics
# sh "your_script.sh"
# You can also use other beta testing services here
end
desc "Deploy a new version to the Google Play"
lane :deploy do
gradle(task: "clean assembleRelease")
upload_to_play_store
end
end
lane :beta do
# Adjust the `build_type` and `flavor` params as needed to build the right APK for your setup
gradle(
task: 'assemble',
build_type: 'Release',
properties: {
"android.injected.signing.store.file" => "key.jks",
"android.injected.signing.store.password" => "",#ENV["storePassword"],
"android.injected.signing.key.alias" => "key",#ENV["keyAlias"],
"android.injected.signing.key.password" => "", #ENV["keyPassword"],
}
)
# upload_to_play_store(track: 'beta')
# ...
end